Fix steps #112
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: unit tests | ||
on: [push] | ||
jobs: | ||
unit-tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
config: [Release, Debug] | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get latest cmake | ||
uses: lukka/get-cmake@latest | ||
- name: Set compiler (ubuntu-latest) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
echo "CC=gcc-13" >> $GITHUB_ENV | ||
echo "CXX=g++-13" >> $GITHUB_ENV | ||
echo "TRIPLET=x64-linux" >> $GITHUB_ENV | ||
- name: Set compiler (windows-latest) | ||
if: maxtrix.os == 'windows-latest' | ||
Check failure on line 25 in .github/workflows/unit_tests.yml GitHub Actions / unit testsInvalid workflow file
|
||
run: | | ||
echo "TRIPLET=x64-windows" >> $GITHUB_ENV | ||
- 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 | ||
run: ctest --test-dir build -C ${{ matrix.config }} | ||
- name: Publish test report | ||
uses: mikepenz/action-junit-report@v3 | ||
with: | ||
report_paths: 'build/bin/junit_*.xml' |