Skip to content

Fix steps

Fix steps #114

Workflow file for this run

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: matrix.os == 'windows-latest'
run: |
echo "TRIPLET=x64-windows" >> $GITHUB_ENV
- name: Configure
run: cmake -B build -S . -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'