-updated sfun to v5.1.0, updated parsing of name-value pairs; #23
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: build & test (clang, gcc, MSVC) | ||
on: | ||
push: | ||
branches: [ "master", "dev" ] | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: [ "master", "dev" ] | ||
paths-ignore: | ||
- '**.md' | ||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
env: | ||
CC: ${{ matrix.config.cc }} | ||
CXX: ${{ matrix.config.cxx }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- { | ||
name: "Ubuntu Latest gcc", | ||
os: ubuntu-latest, | ||
cmake-preset: gcc-release | ||
} | ||
- { | ||
name: "Ubuntu Latest clang", | ||
os: ubuntu-latest, | ||
cmake-preset: clang-release | ||
} | ||
- { | ||
name: "Windows Latest MSVC", | ||
os: windows-latest, | ||
cmake-preset: msvc-release | ||
} | ||
steps: | ||
- name: Install ninja (Windows) | ||
if: matrix.config.os == 'windows-latest' | ||
run: choco install ninja | ||
- name: Install ninja (Linux) | ||
if: matrix.config.os == 'ubuntu-latest' | ||
run: sudo apt install ninja-build | ||
- uses: actions/checkout@v4 | ||
- uses: rui314/setup-mold@v1 | ||
- uses: hendrikmuhs/[email protected] | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DENABLE_TESTS=ON --preset="${{ matrix.config.cmake-preset }}" | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build | ||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest | ||