Added support for std::format. #109
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 | |
with: | |
submodules: 'true' | |
- name: Get latest cmake | |
uses: lukka/get-cmake@latest | |
- name: set compiler | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
echo "CXX=g++-10" >> $GITHUB_ENV | |
echo "CC=gcc-10" >> $GITHUB_ENV | |
- name: Configure Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.config }} --preset gcc-dev -B build -S . | |
- name: Configure Windows | |
if: matrix.os == 'windows-latest' | |
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.config }} --preset msvc-dev -B build -S . | |
- 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' |