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 226157a commit e7163a7
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,20 @@ 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:
name: 'Alpine 3.19 with MUSL'
Expand Down Expand Up @@ -117,6 +123,12 @@ jobs:
run: chroot i386root make -C /root/fvcbm linux LINUX_CC=gcc CFLAGS=-static
- name: 'Run tests with gcc with MUSL on i386'
run: chroot i386root make -C /root/fvcbm test
- name: 'Strip binary'
run: strip i386root/root/fvcbm/fvcbm
- uses: actions/upload-artifact@v4
with:
name: 'fvcbm-linux-x86'
path: i386root/root/fvcbm/fvcbm


osx-12-x86_64:
Expand All @@ -132,6 +144,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 Expand Up @@ -194,3 +212,7 @@ jobs:
- name: 'Compile with z88dk for CP/M'
# nroff is not available, so skip the man build
run: touch fvcbm.man && make cpm
- uses: actions/upload-artifact@v4
with:
name: 'fvcbm.com'
path: fvcbm

0 comments on commit e7163a7

Please sign in to comment.