Skip to content

Update badges to new system #19

Update badges to new system

Update badges to new system #19

Workflow file for this run

name: ci-windows
on:
push:
tags-ignore:
- v*.*
branches:
- '*'
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
build:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
compiler: [vs22]
cxx_version: [17, 20]
target: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Cache CMake build files
uses: actions/cache@v3
with:
path: build
key: ${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-${{ matrix.target }}
restore-keys: |
${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-
${{ runner.os }}-cmake-${{ matrix.compiler }}-
- name: configure
run: cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
- name: build
run: cmake --build build --config=${{matrix.target}}
test:
runs-on: windows-2022
needs: build
strategy:
fail-fast: false
matrix:
compiler: [vs22]
cxx_version: [17, 20]
target: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Cache CMake build files
uses: actions/cache@v3
with:
path: build
key: ${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-${{ matrix.target }}
- name: test
run: cd build && ctest -C ${{matrix.target}} --output-on-failure