Skip to content

Commit

Permalink
Upload some binaries as artifacts in CI jobs
Browse files Browse the repository at this point in the history
These are the ones that are distributed in official releases.
  • Loading branch information
dfandrich committed Mar 26, 2024
1 parent e84ca98 commit c325e4e
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,22 @@ jobs:
chmod 755 wine-wrapper
# Run wine once to set it up, which displays some logs that would mess up tests
WINEDEBUG=-all wine cmd /c exit
- name: 'Compile with mingw32'
run: make clean && make linux LINUX_CC=x86_64-w64-mingw32-gcc
- name: 'Run tests with mingw32+wine'
run: make test TESTWRAPPER=./wine-wrapper
- name: 'Compile with mingw32-posix'
run: make clean && make linux LINUX_CC=x86_64-w64-mingw32-gcc-10-posix
- name: 'Run tests with mingw32-posix+wine'
run: make test TESTWRAPPER=./wine-wrapper
- name: 'Compile with mingw32'
run: make clean && make linux LINUX_CC=x86_64-w64-mingw32-gcc
- name: 'Run tests with mingw32+wine'
run: make test TESTWRAPPER=./wine-wrapper
- name: 'Strip binary'
run: x86_64-w64-mingw32-strip fvcbm.exe
- uses: actions/upload-artifact@v4
with:
name: 'fvcbm-windows.exe'
path: fvcbm.exe

alpine-3_19:
alpine-3_19-x86_64:
name: 'Alpine 3.19 with MUSL'
runs-on: ubuntu-latest
container: 'alpine:3.19'
Expand All @@ -107,6 +113,30 @@ jobs:
- name: 'Run tests with gcc with MUSL'
run: make test

alpine-3_19-i386:
name: 'Alpine 3.19 i386 with MUSL'
runs-on: ubuntu-latest
container:
image: 'alpine:3.19'
options: '--platform i386'
steps:
- uses: actions/checkout@v4
- name: 'Install deps'
run: >
apk add --no-cache
build-base
groff
- name: 'Compile with gcc with MUSL'
run: make linux
- name: 'Run tests with gcc with MUSL'
run: make test
- name: 'Strip binary'
run: strip fvcbm
- uses: actions/upload-artifact@v4
with:
name: 'fvcbm-linux-x86'
path: fvcbm

osx-12-x86_64:
name: 'macOS 12 on x86_64'
runs-on: macos-12
Expand All @@ -120,6 +150,12 @@ jobs:
run: make clean && make linux LINUX_CC=cc LINUX_CFLAGS='-O2 -DUNIX -arch arm64 -arch x86_64'
- name: 'Run tests with fat binary with gcc on x86_64'
run: make test
- name: 'Strip binary'
run: strip fvcbm
- uses: actions/upload-artifact@v4
with:
name: 'fvcbm-macos'
path: fvcbm

osx-14-aarch64:
name: 'macOS 14 on aarch64'
Expand Down

0 comments on commit c325e4e

Please sign in to comment.