-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (41 loc) · 1.13 KB
/
build-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
name: build-macos
on:
push:
branches:
- 'main'
- 'develop'
- 'release/**'
- 'hotfix/**'
jobs:
build-macos:
runs-on: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- name: Configure toolchain
run: |
cmake --version
python3 --version
pip3 install protobuf grpcio-tools
- name: Configure project
run: >
cmake -S. -Bbuild
-DVIRGIL_C_MT_TESTING=ON
-DENABLE_BENCHMARKING=ON
-DVIRGIL_PROGRAMS=ON
- name: Build project
run: cmake --build build -- -j$(sysctl -n hw.physicalcpu)
- name: Run tests
run: ctest --output-on-failure
working-directory: build
SPM:
runs-on: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- name: Check that SPM has correspond xcframeworks hash
run: ./scripts/check_spm_xcframeworks.sh
- name: Run SPM tests
run: ./scripts/run_spm_tests_with_local_binaries.sh