File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -13,31 +13,47 @@ 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
+ elif [ "$RUNNER_OS" == "Linux" ]; then
34
+ echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
35
+ elif [ "$RUNNER_OS" == "Windows" ]; then
36
+ echo "VCPKG_ROOT=C:/vcpkg" >> $GITHUB_ENV
37
+ fi
38
+
25
39
- name : Check Tools
26
40
run : |
41
+ echo "-----------"
27
42
make --version
43
+ echo "-----------"
28
44
cmake --version
45
+ echo "-----------"
29
46
vcpkg --version
47
+ echo "-----------"
30
48
31
49
- name : Install dependencies
32
50
run : |
33
51
make dependencies
34
52
35
- # yamllint disable rule:line-length
36
53
- name : Build
37
54
run : |
38
- export VCPKG_ROOT=/usr/local/share/vcpkg
39
55
make build
40
- # yamllint enable rule:line-length
41
56
42
57
- name : Test
43
- run : make test
58
+ run : |
59
+ make test
You can’t perform that action at this time.
0 commit comments