-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (55 loc) · 1.49 KB
/
build.yml
File metadata and controls
63 lines (55 loc) · 1.49 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
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
include:
- os: macos-latest
platform: macos
- os: ubuntu-latest
platform: linux
- os: windows-latest
platform: windows
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 libx11-dev libxi-dev libayatana-appindicator3-dev
fi
- name: Configure CMake
shell: bash
run: |
mkdir build
cd build
if [ "${{ matrix.platform }}" = "windows" ]; then
cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
else
cmake .. -DCMAKE_BUILD_TYPE=Release
fi
- 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/*/
# !build/examples/*/CMakeFiles/
# !build/examples/*/cmake_install.cmake