-updated seal_lake to v0.2.0 #85
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: apt install ninja | |
- uses: actions/checkout@v4 | |
#- uses: seanmiddleditch/gha-setup-ninja@master | |
- uses: rui314/setup-mold@v1 | |
- uses: hendrikmuhs/ccache-action@v1.2 | |
- 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 | |