t #6030
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: CMake | |
# When creating a new workflow in GitHub’s action builder the default trigger is the push event. We want to extend this to push and pull request events. | |
on: [push, pull_request] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: amigadev/crosstools:m68k-amigaos-gcc10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run prep.sh script | |
run: Packaging/amiga/prep.sh | |
#run: Packaging/nix/debian-host-prep.sh | |
- name: Configure CMake | |
run: | | |
cmake -S. -Bbuild -GNinja \ | |
-D USE_PATCH=ON \ | |
-DM68K_COMMON="-s -ffast-math -O3" \ | |
-DM68K_CPU=68040 \ | |
-DM68K_FPU=hard | |
- name: Build DevilutionX | |
run: cmake --build build | |
- name: Upload Package | |
if: ${{ !env.ACT }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: devilutionx_m68k | |
path: ./build/devilutionx |