Skip to content

Commit

Permalink
Add macOS build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danra committed Apr 17, 2024
1 parent 45473b3 commit 98bff20
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@ jobs:
fail-fast: false

matrix:
os: [{runner: windows-latest, preset: win}]
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

Expand Down

0 comments on commit 98bff20

Please sign in to comment.