Files
SpaghettiKart/.github/workflows/macos-compile.yml
T
Nikita 8132405bab Add vcpkg.json, change MacOS CI to use that (#346)
* add vcpkg support for installing dependencies

* Change macos CI to use vcpkg for dependencies

* actually fix CI for macos

* fix SDL_net linking

SDL_net was being linked twice

* update baseline
2025-06-24 10:50:46 -06:00

34 lines
1008 B
YAML

name: MacOS Validation
on:
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: brew install ninja cmake
- name: Install vcpkg
uses: lukka/run-vcpkg@v11.5
with:
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
- name: Build
run: |
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build-cmake -j
- name: Create Package
run: |
mkdir spaghetti-release
mv build-cmake/spaghetti spaghetti-release/
- name: Publish packaged artifacts
uses: actions/upload-artifact@v4
with:
name: spaghetti-mac-universal
path: spaghetti-release
retention-days: 1