Add a Linux workflow job #45
Workflow file for this run
This file contains hidden or 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
| # SPDX-FileCopyrightText: (C) Roman Donchenko | |
| # | |
| # SPDX-License-Identifier: MPL-2.0 | |
| name: Build and test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-26.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Configure | |
| # TODO: add -fsanitize=undefined after GCC 16 becomes available | |
| run: cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=Release | |
| -D CMAKE_CXX_FLAGS='-fsanitize=address,leak' | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| run: ctest --test-dir build --verbose | |
| windows: | |
| runs-on: windows-2025-vs2026 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install CMake | |
| run: pipx install cmake==4.2 | |
| - name: Configure | |
| run: cmake -B build -G "Visual Studio 18 2026" | |
| - name: Build | |
| run: cmake --build build --config Release | |
| - name: Test | |
| run: ctest --test-dir build --build-config Release --verbose |