Skip to content

Commit

Permalink
[CONFIG] [Github Actions] C/C++ rewrite.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Diaz committed Dec 11, 2024
1 parent 30fd5fb commit 516f605
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,49 @@ on: # yamllint disable-line rule:truthy
jobs:
build:
name: C/C++ CMake CI Test
runs-on: ubuntu-24.04
strategy:
matrix:
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
os: ["ubuntu-24.04", "macos-14"
# , "windows-2022"
]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Install
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install vcpkg
git clone https://github.com/microsoft/vcpkg "$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Linux" ]; then
echo "VCPKG_ROOT=/usr/local/share/vcpkg" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "VCPKG_ROOT=C:/vcpkg" >> $GITHUB_ENV
fi
- name: Check Tools
run: |
echo "-----------"
make --version
echo "-----------"
cmake --version
echo "-----------"
vcpkg --version
echo "-----------"
- name: Install dependencies
run: |
make dependencies
# yamllint disable rule:line-length
- name: Build
run: |
export VCPKG_ROOT=/usr/local/share/vcpkg
make build
# yamllint enable rule:line-length
- name: Test
run: make test
run: |
make test
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Developed with TDD.

Go to [Install and run](#install-and-run)

> [!WARNING]
> Not supported on Windows yet.
## What is this?

This repository is part of a series that share and solve the same [objectives](#objetives),
Expand Down

0 comments on commit 516f605

Please sign in to comment.