Fix AmigaOS 3 build #97
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build-linux: | |
name: Linux (${{ matrix.linux.system }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
linux: | |
- { system: X, apt-packages: libx11-dev libxext-dev } | |
- { system: SDL1, apt-packages: libsdl1.2-dev } | |
- { system: SDL2, apt-packages: libsdl2-dev } | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
if: ${{ matrix.linux.apt-packages != '' }} | |
run: sudo apt-get update && sudo apt-get install ${{ matrix.linux.apt-packages }} | |
- name: Configure | |
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSYSTEM=${{ matrix.linux.system }} . | |
- name: Build | |
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: arcem-${{ matrix.linux.platform }} | |
path: ./build/arcem | |
build-msvc: | |
name: Windows (MSVC ${{ matrix.msvc.platform }}) | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
msvc: | |
- { platform: Win32 } | |
- { platform: x64 } | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure | |
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -A ${{ matrix.msvc.platform }} . | |
- name: Build | |
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: arcem-msvc-${{ matrix.msvc.platform }} | |
path: build/Release/ArcEm.exe | |
build-mingw: | |
name: Windows (${{ matrix.mingw.msystem }}) | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
strategy: | |
matrix: | |
mingw: | |
- { msystem: mingw32, msys-env: mingw-w64-i686 } | |
- { msystem: mingw64, msys-env: mingw-w64-x86_64 } | |
steps: | |
- name: Set up MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{ matrix.mingw.msystem }} | |
install: ${{ matrix.mingw.msys-env }}-cc ${{ matrix.mingw.msys-env }}-cmake | |
- uses: actions/checkout@v3 | |
- name: Configure | |
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} . | |
- name: Build | |
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: arcem-${{ matrix.mingw.msystem }} | |
path: ./build/ArcEm.exe | |
build-watcom: | |
name: Windows (OpenWatcom) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up OpenWatcom | |
uses: open-watcom/setup-watcom@v0 | |
with: | |
tag: 2021-12-01-Build | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: wmake -f Makefile.ow | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: arcem-watcom | |
path: ./ArcEm.exe | |
build-riscos: | |
name: RISC OS | |
runs-on: ubuntu-latest | |
container: riscosdotinfo/riscos-gccsdk-4.7:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: make SYSTEM=riscos-single CROSS=arm-unknown-riscos- | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: arcem-riscos | |
path: ./ArcEm | |
build-amiga: | |
name: ${{ matrix.amiga.name }} | |
runs-on: ubuntu-latest | |
container: amigadev/crosstools:${{ matrix.amiga.host }} | |
strategy: | |
matrix: | |
amiga: | |
- { name: "AmigaOS 3", host: "m68k-amigaos", cmake-flags: -DM68K_CRT=nix20 } | |
- { name: "AmigaOS 4", host: "ppc-amigaos", cmake-flags: -DPPC_CRT=newlib } | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure | |
run: cmake -B build/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{ matrix.amiga.cmake-flags }} . | |
- name: Build | |
run: cmake --build build/ --config ${{env.BUILD_TYPE}} --parallel | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: arcem-${{ matrix.amiga.host }} | |
path: ./arcem |