ci: add macOS as a build target

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-31 07:36:47 -03:00
parent 0d13934f56
commit 3a47c24975
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest] os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -23,6 +23,10 @@ jobs:
run: | run: |
vcpkg integrate install vcpkg integrate install
vcpkg install sdl2:x64-windows vcpkg install sdl2:x64-windows
- name: prepare-macos
if: runner.os == 'macOS'
run: |
brew install sdl2
- name: build - name: build
run: zig build -Drelease-safe run: zig build -Drelease-safe
lint: lint: