Skip to content

Commit

Permalink
using vcpkg from runners in unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yobeonline committed Jan 7, 2024
1 parent fef4220 commit c223046
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 35 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,26 @@ jobs:
gcc: [13]
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'

- name: Get latest cmake
uses: lukka/get-cmake@latest

- name: Configure (!Windows)
- name: Set compiler (!Windows)
env:
CC: gcc-${{ matrix.gcc }}
CXX: g++-${{ matrix.gcc }}
TRIPLET: x64-linux
if: runner.os != 'Windows'
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.config }} --preset gcc-dev -B build -S .

- name: Configure (Windows)

- name: Set compiler (Windows)
env:
TRIPLET: x64-windows
if: runner.os == 'Windows'
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.config }} --preset msvc-dev -B build -S .

- name: Build
- name: Configure
run: cmake -B build -S . -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DVCPKG_TARGET_TRIPLET=${TRIPLET} --toolchain=${VCPKG_INSTALLATION_ROOT}\scripts\buildsystems\vcpkg.cmake

- name: Build
run: cmake --build build --config ${{ matrix.config }} --parallel

- name: Execute
Expand Down
26 changes: 0 additions & 26 deletions CMakePresets.json

This file was deleted.

0 comments on commit c223046

Please sign in to comment.