-
Notifications
You must be signed in to change notification settings - Fork 104
83 lines (71 loc) · 1.79 KB
/
build-macos-arm.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Build-macOS-arm
on:
push:
pull_request:
workflow_dispatch:
jobs:
macOS:
runs-on: macos-latest
steps:
- name: Check Out Code
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Use CCache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ runner.os }}
max-size: "1500M"
- name: Install Dependencies
run: |
brew install \
pkg-config \
libsigc++@2 \
glfw \
cmake \
yaml-cpp \
catch2 \
libomp \
vulkan-headers \
vulkan-loader \
spirv-tools \
glslang \
shaderc \
molten-vk \
ninja \
hidapi
- name: Configure
run: |
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
mkdir build
cd build
cmake \
-DDISABLE_PCH=ON \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_DOCS=OFF \
-DBUILD_TESTING=ON \
-DCMAKE_PREFIX_PATH="$(brew --prefix)/opt/libomp" \
..
- name: Build
run: |
cd build
ninja
- name: Run Tests
if: ${{ false }} # Metal is not available on GH macOS runners
run: |
cd build
ninja test
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ngscopeclient-${{ runner.os }}-${{ github.job }}
path: |
build/src/ngscopeclient/ngscopeclient
build/src/ngscopeclient/icons/*
build/src/ngscopeclient/shaders/*
build/lib/scopehal/libscopehal.dylib
build/lib/scopeprotocols/libscopeprotocols.dylib