-
Notifications
You must be signed in to change notification settings - Fork 102
44 lines (42 loc) · 1.42 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
40
41
42
43
44
name: 'build macos'
on:
workflow_call:
inputs:
cmake-version:
required: true
type: string
platforms:
required: true
type: string
configurations:
required: true
type: string
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
platform: ${{ fromJson(inputs.platforms) }}
config: ${{ fromJson(inputs.configurations) }}
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: ${{ inputs.cmake-version }}
- name: CMake Configure
run: cmake -G Xcode -B ./built/Int/cmake_${{ matrix.platform }} .
- name: CMake Build
run: cmake --build . --target install --config ${{ matrix.config }}
working-directory: ./built/Int/cmake_${{ matrix.platform }}
- name: Running Unit Tests
run: ./GLTFSDK.Test --gtest_output=xml:GLTFSDK.Test.log
working-directory: ./built/Out/${{ matrix.platform }}/${{ matrix.config }}/GLTFSDK.Test
- uses: actions/upload-artifact@v4
name: "Upload test results"
with:
name: GLTFSDK.Test.MacOS.${{ matrix.platform }}.${{ matrix.config }}
path: ${{ github.workspace }}/built/Out/${{ matrix.platform }}/${{ matrix.config }}/GLTFSDK.Test/GLTFSDK.Test.log