File tree 1 file changed +61
-0
lines changed
1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ branches : [master]
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ${{ matrix.platform }}
13
+
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ platform : [macos-latest, ubuntu-latest]
18
+ build-type : [debug, release]
19
+
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ submodules : ' recursive'
24
+
25
+ - name : Set strings
26
+ id : strings
27
+ run : |
28
+ echo "build-dir=${{ github.workspace }}/build" >> $GITHUB_OUTPUT
29
+
30
+ - name : Bootstrap vcpkg
31
+ run : |
32
+ ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.sh
33
+
34
+ - name : Install CMake on Ubuntu
35
+ if : matrix.platform == 'ubuntu-latest'
36
+ run : |
37
+ sudo apt-get update
38
+ sudo apt-get install -y cmake
39
+
40
+ - name : Install CMake on macOS
41
+ if : matrix.platform == 'macos-latest'
42
+ run : |
43
+ brew install cmake
44
+
45
+ - name : Install EMSDK
46
+ shell : base
47
+ run : |
48
+ git clone https://github.com/emscripten-core/emsdk.git
49
+ cd emsdk
50
+ ./emsdk install latest
51
+ ./emsdk activate latest
52
+ echo "EMSDK="${{ github.workspace }}/emsdk" >> $GITHUB_ENV
53
+
54
+ - name : CMake Configure
55
+ run : >
56
+ cmake -S ${{ github.workspace }}
57
+ -B ${{ steps.strings.outputs.build-dir }}
58
+ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
59
+
60
+ - name : CMake Build
61
+ run : cmake --build ${{ steps.strings.outputs.build-dir }}
You can’t perform that action at this time.
0 commit comments