Skip to content

Commit 472be76

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

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Developed with TDD.
3030
[![CMake](https://img.shields.io/badge/CMake-%23008FBA.svg?style=for-the-badge&logo=cmake&logoColor=white)](https://cmake.org/)
3131
[![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)](https://www.docker.com/)
3232

33+
> [!WARNING]
34+
> Not supported on Windows yet.
35+
3336
Go to [Install and run](#install-and-run)
3437

3538
## What is this?

0 commit comments

Comments
 (0)