Fix AmigaOS 4 build #8
This file contains hidden or 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] | |
| jobs: | |
| linux-legacy: | |
| name: Linux (Legacy Makefile) | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libsdl2-dev | |
| - name: Compile | |
| run: | | |
| echo I_ACKNOWLEDGE_THE_MAKEFILE_IS_DEPRECATED=1 > Makefile.local | |
| make release -j$(nproc) | |
| windows-legacy: | |
| name: Windows (Legacy Makefile) | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compile | |
| run: | | |
| echo I_ACKNOWLEDGE_THE_MAKEFILE_IS_DEPRECATED=1 > Makefile.local | |
| make release -j $env:NUMBER_OF_PROCESSORS | |
| macos-legacy: | |
| name: macOS (Legacy Makefile) | |
| runs-on: macos-13 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compile | |
| run: | | |
| echo I_ACKNOWLEDGE_THE_MAKEFILE_IS_DEPRECATED=1 > Makefile.local | |
| make release -j$(sysctl -n hw.logicalcpu) | |
| emscripten-legacy: | |
| name: Emscripten (Legacy Makefile) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: emscripten-core/emsdk | |
| path: emsdk | |
| - name: Install Dependencies | |
| run: | | |
| cd emsdk | |
| ./emsdk install 3.1.58 | |
| ./emsdk activate 3.1.58 | |
| - name: Compile | |
| run: | | |
| echo I_ACKNOWLEDGE_THE_MAKEFILE_IS_DEPRECATED=1 > Makefile.local | |
| source emsdk/emsdk_env.sh | |
| emmake make release -j$(nproc) | |
| linux: | |
| name: Linux | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libsdl2-dev | |
| - name: Compile | |
| run: | | |
| cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build | |
| echo "VERSION=$(cat build/version.txt)" >> $GITHUB_ENV | |
| cpack --config build/CPackConfig.cmake -B build/installer --verbose | |
| mv build/installer/*.deb build/Release | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.event.repository.name }}-linux-${{ env.VERSION }} | |
| path: | | |
| build/Release/**/* | |
| windows-msvc: | |
| name: Windows MSVC | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compile | |
| run: | | |
| cmake -S . -B build -G "Visual Studio 17 2022" | |
| cmake --build build --config Release | |
| $version = Get-Content build/version.txt -Raw | |
| Add-Content -Path $env:GITHUB_ENV -Value "VERSION=$version" | |
| cpack --config build/CPackConfig.cmake -B build/installer --verbose | |
| Move-Item -Path "build/installer/*.exe" -Destination "build/Release" | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.event.repository.name }}-windows-msvc-${{ env.VERSION }} | |
| path: | | |
| build/Release/**/*.dll | |
| build/Release/**/*.exe | |
| build/Release/**/*.qvm | |
| windows-mingw: | |
| name: Windows MinGW | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compile | |
| run: | | |
| cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build | |
| $version = Get-Content build/version.txt -Raw | |
| Add-Content -Path $env:GITHUB_ENV -Value "VERSION=$version" | |
| cpack --config build/CPackConfig.cmake -B build/installer --verbose | |
| Move-Item -Path "build/installer/*.exe" -Destination "build/Release" | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.event.repository.name }}-windows-mingw-${{ env.VERSION }} | |
| path: | | |
| build/Release/**/*.dll | |
| build/Release/**/*.exe | |
| build/Release/**/*.qvm | |
| macos: | |
| name: macOS | |
| runs-on: macos-13 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Import Code Signing Certificate | |
| if: github.ref_name == 'main' | |
| run: | | |
| misc/ci-macos-import-codesign-cert.sh | |
| echo "APPLE_CERTIFICATE_ID=${{ secrets.APPLE_CERTIFICATE_ID }}" >> $GITHUB_ENV | |
| env: | |
| APPLE_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_CERTIFICATE_P12_BASE64 }} | |
| APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
| - name: Compile | |
| run: | | |
| cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build | |
| echo "VERSION=$(cat build/version.txt)" >> $GITHUB_ENV | |
| cpack --config build/CPackConfig.cmake -B build/installer --verbose | |
| mv build/installer/*.dmg build/Release | |
| - name: Notarize | |
| if: github.ref_name == 'main' | |
| run: | | |
| misc/ci-macos-notarize.sh build/Release/*.dmg | |
| env: | |
| APPLE_NOTARIZATION_USERNAME: ${{ secrets.APPLE_NOTARIZATION_USERNAME }} | |
| APPLE_NOTARIZATION_PASSWORD: ${{ secrets.APPLE_NOTARIZATION_PASSWORD }} | |
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.event.repository.name }}-macOS-${{ env.VERSION }} | |
| path: | | |
| build/Release/**/* | |
| emscripten: | |
| name: Emscripten | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install emsdk | |
| uses: mymindstorm/setup-emsdk@v13 | |
| with: | |
| version: 3.1.58 | |
| - name: Compile | |
| run: | | |
| emcmake cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build | |
| echo "VERSION=$(cat build/version.txt)" >> $GITHUB_ENV | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.event.repository.name }}-emscripten-${{ env.VERSION }} | |
| path: | | |
| build/Release/**/* | |
| linux-external-libraries: | |
| name: Linux (USE_INTERNAL_LIBS OFF) | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libsdl2-dev zlib1g-dev libjpeg-dev libopenal-dev \ | |
| libogg-dev libvorbis-dev libopus-dev libopusfile-dev libcurl4-openssl-dev | |
| - name: Compile | |
| run: | | |
| cmake -S . -B build -G Ninja -DUSE_INTERNAL_LIBS=OFF -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build |