Put the CMAKE_TOOLCHAIN_FILE in the right place #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
env: | |
CTEST_NO_TESTS_ACTION: error | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
on: | |
push: | |
paths: | |
- "**.c" | |
- "**.cc" | |
- "**.cpp" | |
- "**.h" | |
- "**/CMakeLists.txt" | |
- "**.cmake" | |
- ".github/workflows/ci.yml" | |
jobs: | |
core: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install Dependencies | |
run: | | |
vcpkg integrate install | |
vcpkg install | |
- name: Configure | |
uses: threeal/[email protected] | |
with: | |
generator: Ninja | |
c-compiler: clang | |
cxx-compiler: clang++ | |
options: -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake | |
- name: Build | |
run: cmake --build build | |
- name: Unit Tests | |
run: build/iggy_cpp_test | |