Merge pull request #69 from eseiler/infra/rework #73
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: Linux | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: linux-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: ${{ github.event_name != 'push' }} | |
env: | |
SHARG_NO_VERSION_CHECK: 1 | |
TZ: Europe/Berlin | |
defaults: | |
run: | |
shell: bash -Eeuxo pipefail {0} | |
jobs: | |
build: | |
name: ${{ matrix.name }} | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 120 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "clang17" | |
compiler: "clang-17" | |
build: unit | |
build_type: Release | |
cxx_flags: "-stdlib=libc++" | |
- name: "gcc13" | |
compiler: "gcc-13" | |
build: unit | |
build_type: Release | |
- name: "gcc12" | |
compiler: "gcc-12" | |
build: unit | |
build_type: Release | |
- name: "gcc11" | |
compiler: "gcc-11" | |
build: unit | |
build_type: Release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: false | |
- name: Setup toolchain | |
uses: seqan/actions/setup-toolchain@main | |
with: | |
compiler: ${{ matrix.compiler }} | |
ccache_size: 75M | |
- name: Install CMake | |
uses: seqan/actions/setup-cmake@main | |
with: | |
cmake: 3.21.7 | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}" | |
make -j2 gtest_main benchmark_main yaml-cpp | |
- name: Build application | |
run: | | |
cd build | |
CMAKE_BUILD_PARALLEL_LEVEL=2 cmake --build . -- -k | |
- name: Build and run tests | |
run: | | |
cd build | |
CMAKE_BUILD_PARALLEL_LEVEL=2 cmake --build . -- -k test |