Skip to content

[cicd] windows pipeline with default tooling #2309

[cicd] windows pipeline with default tooling

[cicd] windows pipeline with default tooling #2309

Workflow file for this run

name: 'Pipeline'
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
schedule:
- cron: '0 0 * * */5'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- { os: 'ubuntu-24.04', cxx: 'clang++-18', cc: 'clang-18', generator: 'Unix Makefiles', packages: 'clang-18' }
- { os: 'ubuntu-24.04', cxx: 'g++-14', cc: 'gcc-14', generator: 'Unix Makefiles', packages: 'g++-14' }
- { os: 'windows-2022', cxx: 'cl', cc: 'cl', generator: 'Visual Studio 17 2022', config: 'Debug' }
- { os: 'windows-2022', cxx: 'cl', cc: 'cl', generator: 'Visual Studio 17 2022', config: 'Release' }
name: '${{ matrix.os }} / ${{ matrix.cxx }} / ${{ matrix.generator }} / ${{ matrix.config }}'
runs-on: '${{ matrix.os }}'
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: 'Checkout'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Configure'
env:
CXX: '${{ matrix.cxx }}'
CC: '${{ matrix.cc }}'
run: cmake -S . -B 'build' -G '${{ matrix.generator }}'
- name: 'Build'
run: cmake --build 'build' --config '${{ matrix.config }}' --verbose --parallel 4
- name: 'Test'
run: ctest --test-dir 'build' --build-config '${{ matrix.config }}' --timeout 2 --tests-regex 'kalman' --verbose --parallel 4
- name: 'Install'
run: cmake --install 'build' --config '${{ matrix.config }}' --prefix 'install' --verbose
- name: 'Package'
run: cmake --build 'build' --target 'package' --config '${{ matrix.config }}' --verbose --parallel 4