-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.01 KB
/
build.yml
File metadata and controls
50 lines (42 loc) · 1.01 KB
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
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
matrix:
os:
- macos-latest
include:
- os: macos-latest
platform: macos
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up CMake
shell: bash
run: |
cmake --version
if [ "${{ matrix.platform }}" = "linux" ]; then
sudo apt-get update
sudo apt-get install -y ninja-build libgtk-3-dev
fi
- name: Configure CMake
shell: bash
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Build Examples
shell: bash
run: |
cd build
cmake --build . --config Release
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: examples-${{ matrix.platform }}
path: build/examples/display_example/