Skip to content

Commit 3534b51

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] C/C++ rewrite.
1 parent 30fd5fb commit 3534b51

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/cpp.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,49 @@ on: # yamllint disable-line rule:truthy
1313
jobs:
1414
build:
1515
name: C/C++ CMake CI Test
16-
runs-on: ubuntu-24.04
1716
strategy:
1817
matrix:
19-
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
18+
os: ["ubuntu-24.04", "macos-14"
19+
# , "windows-2022"
20+
]
21+
runs-on: ${{ matrix.os }}
2022

2123
steps:
2224
- name: Checkout repository
2325
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2426

27+
- name: Install
28+
shell: bash
29+
run: |
30+
if [ "$RUNNER_OS" == "macOS" ]; then
31+
brew install vcpkg
32+
git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
33+
export VCPKG_ROOT="$HOME/vcpkg"
34+
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
35+
elif [ "$RUNNER_OS" == "Linux" ]; then
36+
echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
37+
elif [ "$RUNNER_OS" == "Windows" ]; then
38+
echo "VCPKG_ROOT=C:/vcpkg" >> $GITHUB_ENV
39+
fi
40+
2541
- name: Check Tools
2642
run: |
43+
echo "-----------"
2744
make --version
45+
echo "-----------"
2846
cmake --version
47+
echo "-----------"
2948
vcpkg --version
49+
echo "-----------"
3050
3151
- name: Install dependencies
3252
run: |
3353
make dependencies
3454
35-
# yamllint disable rule:line-length
3655
- name: Build
3756
run: |
38-
export VCPKG_ROOT=/usr/local/share/vcpkg
3957
make build
40-
# yamllint enable rule:line-length
4158
4259
- name: Test
43-
run: make test
60+
run: |
61+
make test

0 commit comments

Comments
 (0)