-
Notifications
You must be signed in to change notification settings - Fork 29
53 lines (43 loc) · 1.15 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
45
46
47
48
49
50
51
52
53
name: 🍎 macOS
# TODO: upload *.dylib / *.framework as artifacts
on:
push:
paths:
- "doc/cpp-demo/**"
branches-ignore:
- godot3
pull_request:
paths:
- "doc/cpp-demo/**"
branches-ignore:
- godot3
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
VCPKG_DISABLE_METRICS: 1
vcpkg_tag: "2022.11.14"
source: "${{ github.workspace }}/doc/cpp-demo"
build: "${{ github.workspace }}/doc/cpp-demo/build.debug"
preset: debug
config: Debug
jobs:
analyze:
name: Build
runs-on: macos-latest
steps:
- name: macOS deps
run: |
brew install ninja
- uses: actions/checkout@v3
- name: Get vcpkg
run: |
git clone -n https://github.com/microsoft/vcpkg
cd vcpkg
git checkout ${{ env.vcpkg_tag }}
./bootstrap-vcpkg.sh
- name: CMake Configure
run: cmake --preset ${{ env.preset }} ${{ env.source }}
- name: CMake Build
run: cmake --build ${{ env.build }} --config ${{ env.config }} --target install
- name: CMake Test
working-directory: ${{ env.build }}
run: ctest -C ${{env.config}}