Skip to content

Fix steps

Fix steps #112

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: maxtrix.os == 'windows-latest'

Check failure on line 25 in .github/workflows/unit_tests.yml

View workflow run for this annotation

GitHub Actions / unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/unit_tests.yml (Line: 25, Col: 13): Unrecognized named-value: 'maxtrix'. Located at position 1 within expression: maxtrix.os == 'windows-latest'
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'