Skip to content

Mac CI

Mac CI #19

Workflow file for this run

name: Descent 3 Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [{runner: windows-latest, preset: win}, {runner: macos-latest, preset: mac}]
build_type: [Debug, Release]
runs-on: ${{ matrix.os.runner }}
steps:
- uses: actions/checkout@v4
- name: Install macOS dependencies
if: ${{ matrix.os.preset == 'mac' }}
run: |
# Note this is x86_64 Homebrew
/usr/local/bin/brew install sdl12-compat sdl2_image
curl --output-dir /tmp -fsSLO https://github.com/XQuartz/XQuartz/releases/download/XQuartz-2.8.5/XQuartz-2.8.5.pkg
installer -pkg /tmp/XQuartz-2.8.5.pkg -target LocalSystem
- name: Configure CMake
run: cmake --preset ${{matrix.os.preset}} -B ${{github.workspace}}/build
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: build_${{matrix.build_type}}
path: ${{github.workspace}}/build/Descent3/${{matrix.build_type}}