-
-
Notifications
You must be signed in to change notification settings - Fork 303
39 lines (34 loc) · 1.54 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: macOS
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, macos-14]
build_type: [Debug, Release]
option: [default, ref, shared, no_fbx]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Install fbx sdk
if: matrix.option != 'no_fbx'
run: |
mkdir fbx
cd fbx
sudo wget --user-agent='Mozilla/5.0' 'https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-3-4/fbx202034_fbxsdk_clang_mac.pkg.tgz' -O 'fbx.tgz'
sudo tar -xf 'fbx.tgz'
sudo installer -pkg *_fbxsdk_clang_macos.pkg -target /
cd ..
- name: Configure
# Configure CMake in a 'build' subdirectory.
run: |
cmake --version
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.option == 'shared'}} -Dozz_build_tests=${{matrix.option != 'no_tests'}} -Dozz_build_simd_ref=${{matrix.option == 'ref'}} -Dozz_build_samples=${{matrix.option != 'no_sample'}} -Dozz_build_data=${{matrix.option != 'no_data'}} -Dozz_build_gltf=${{matrix.option != 'no_gltf'}}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --use-stderr -j
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
run: ctest -C ${{matrix.build_type}} --output-on-failure -j2