39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: MacOS Validation
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macOS-latest
|
|
strategy:
|
|
matrix:
|
|
config: [Release, Debug]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
fetch-tags: true
|
|
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=${{ matrix.config }} -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
|
|
cmake --build build-cmake -j --config ${{ matrix.config }}
|
|
- name: Create Package
|
|
run: |
|
|
mkdir spaghetti-${{ matrix.config }}
|
|
mv build-cmake/Spaghettify spaghetti-${{ matrix.config }}/
|
|
- name: Publish packaged artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: spaghetti-mac-universal-${{ matrix.config }}
|
|
path: spaghetti-${{ matrix.config }}
|
|
retention-days: 1
|