mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Create statically-linked Linux binaries on release (#1148)
Co-authored-by: Antonio Vivace <avivace4@gmail.com>
This commit is contained in:
32
.github/workflows/create-release-artifacts.yaml
vendored
32
.github/workflows/create-release-artifacts.yaml
vendored
@@ -93,9 +93,34 @@ jobs:
|
|||||||
name: macos
|
name: macos
|
||||||
path: rgbds-${{ env.version }}-macos-x86-64.zip
|
path: rgbds-${{ env.version }}-macos-x86-64.zip
|
||||||
|
|
||||||
|
linux:
|
||||||
|
runs-on: ubuntu-20.04 # Oldest supported, for best glibc compatibility.
|
||||||
|
steps:
|
||||||
|
- name: Get version from tag
|
||||||
|
shell: bash
|
||||||
|
run: | # Turn "refs/tags/vX.Y.Z" into "X.Y.Z"
|
||||||
|
VERSION="${{ github.ref_name }}"
|
||||||
|
echo "version=${VERSION#v}" >> $GITHUB_ENV
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install deps
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
./.github/scripts/install_deps.sh ubuntu-20.04
|
||||||
|
- name: Build binaries
|
||||||
|
run: |
|
||||||
|
make -j WARNFLAGS="-Wall -Wextra -pedantic -static" PKG_CONFIG="pkg-config --static" Q=
|
||||||
|
- name: Package binaries
|
||||||
|
run: |
|
||||||
|
tar caf rgbds-${{ env.version }}-linux-x86_64.tar.xz --transform='s#.*/##' rgb{asm,link,fix,gfx} man/* .github/scripts/install.sh
|
||||||
|
- name: Upload Linux binaries
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: linux
|
||||||
|
path: rgbds-${{ env.version }}-linux-x86_64.tar.xz
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [windows, macos]
|
needs: [windows, macos, linux]
|
||||||
steps:
|
steps:
|
||||||
- name: Get version from tag
|
- name: Get version from tag
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -112,7 +137,7 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
body: |
|
body: |
|
||||||
Please ensure that the three assets below work properly.
|
Please ensure that the four packages below work properly.
|
||||||
Once that's done, replace this text with the changelog, un-draft the release, and update the `release` branch.
|
Once that's done, replace this text with the changelog, un-draft the release, and update the `release` branch.
|
||||||
By the way, if you forgot to update `include/version.h`, RGBASM's version test is gonna fail in the tag's regression testing! (Use `git push --delete origin <tag>` to delete it)
|
By the way, if you forgot to update `include/version.h`, RGBASM's version test is gonna fail in the tag's regression testing! (Use `git push --delete origin <tag>` to delete it)
|
||||||
draft: true # Don't publish the release quite yet...
|
draft: true # Don't publish the release quite yet...
|
||||||
@@ -120,7 +145,8 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
win32/rgbds-${{ env.version }}-win32.zip
|
win32/rgbds-${{ env.version }}-win32.zip
|
||||||
win64/rgbds-${{ env.version }}-win64.zip
|
win64/rgbds-${{ env.version }}-win64.zip
|
||||||
macos/rgbds-${{ env.version }}-macos-x86-64.zip
|
macos/rgbds-${{ env.version }}-macos-x86_64.zip
|
||||||
|
linux/rgbds-${{ env.version }}-linux-x86_64.tar.xz
|
||||||
rgbds-${{ env.version }}.tar.gz
|
rgbds-${{ env.version }}.tar.gz
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
env:
|
env:
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -224,7 +224,7 @@ checkdiff:
|
|||||||
# The rationale for some of the flags is documented in the CMakeLists.
|
# The rationale for some of the flags is documented in the CMakeLists.
|
||||||
|
|
||||||
develop:
|
develop:
|
||||||
$Qenv ${MAKE} WARNFLAGS="-Werror -Wextra \
|
$Qenv ${MAKE} WARNFLAGS="${WARNFLAGS} -Werror -Wextra \
|
||||||
-Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond \
|
-Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond \
|
||||||
-Wfloat-equal -Wlogical-op -Wnull-dereference -Wshift-overflow=2 \
|
-Wfloat-equal -Wlogical-op -Wnull-dereference -Wshift-overflow=2 \
|
||||||
-Wstringop-overflow=4 -Wstrict-overflow=5 -Wundef -Wuninitialized -Wunused \
|
-Wstringop-overflow=4 -Wstrict-overflow=5 -Wundef -Wuninitialized -Wunused \
|
||||||
|
|||||||
Reference in New Issue
Block a user