File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -13,31 +13,45 @@ on: # yamllint disable-line rule:truthy
13
13
jobs :
14
14
build :
15
15
name : C/C++ CMake CI Test
16
- runs-on : ubuntu-24.04
17
16
strategy :
18
17
matrix :
19
18
os : ["windows-2022", "ubuntu-24.04", "macos-14"]
19
+ runs-on : ${{ matrix.os }}
20
20
21
21
steps :
22
22
- name : Checkout repository
23
23
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
24
24
25
+ - name : Install
26
+ shell : bash
27
+ run : |
28
+ if [ "$RUNNER_OS" == "macOS" ]; then
29
+ brew install vcpkg
30
+ git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
31
+ export VCPKG_ROOT="$HOME/vcpkg"
32
+ echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
33
+ if [ "$RUNNER_OS" == "Linux" ]; then
34
+ export VCPKG_ROOT="$HOME/vcpkg"
35
+ fi
36
+
25
37
- name : Check Tools
26
38
run : |
39
+ echo "-----------"
27
40
make --version
41
+ echo "-----------"
28
42
cmake --version
43
+ echo "-----------"
29
44
vcpkg --version
45
+ echo "-----------"
30
46
31
47
- name : Install dependencies
32
48
run : |
33
49
make dependencies
34
50
35
- # yamllint disable rule:line-length
36
51
- name : Build
37
52
run : |
38
- export VCPKG_ROOT=/usr/local/share/vcpkg
39
53
make build
40
- # yamllint enable rule:line-length
41
54
42
55
- name : Test
43
- run : make test
56
+ run : |
57
+ make test
You can’t perform that action at this time.
0 commit comments