File tree 1 file changed +53
-0
lines changed
1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ build :
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-latest, windows-latest, macos-latest]
14
+ include :
15
+ - os : ubuntu-latest
16
+ platform : linux
17
+ - os : windows-latest
18
+ platform : windows
19
+ - os : macos-latest
20
+ platform : macos
21
+
22
+ runs-on : ${{ matrix.os }}
23
+
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+
27
+ - name : Set up CMake
28
+ shell : bash
29
+ run : |
30
+ cmake --version
31
+ if [ "${{ matrix.platform }}" = "linux" ]; then
32
+ sudo apt-get update
33
+ sudo apt-get install -y ninja-build libgtk-3-dev
34
+ fi
35
+
36
+ - name : Configure CMake
37
+ shell : bash
38
+ run : |
39
+ mkdir build
40
+ cd build
41
+ cmake .. -DCMAKE_BUILD_TYPE=Release
42
+
43
+ - name : Build Examples
44
+ shell : bash
45
+ run : |
46
+ cd build
47
+ cmake --build . --config Release
48
+
49
+ - name : Upload artifacts
50
+ uses : actions/upload-artifact@v4
51
+ with :
52
+ name : examples-${{ matrix.platform }}
53
+ path : build/examples/screen_info/
You can’t perform that action at this time.
0 commit comments