Skip to content

t

t #6030

Workflow file for this run

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