Skip to content

[MISC] Update example #231

[MISC] Update example

[MISC] Update example #231

Workflow file for this run

# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
# SPDX-License-Identifier: CC0-1.0
name: macOS
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
concurrency:
group: macos-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name != 'push' }}
env:
TZ: Europe/Berlin
defaults:
run:
shell: bash -Eeuxo pipefail {0}
jobs:
build:
name: ${{ matrix.compiler }} C++${{ matrix.cpp }} ${{ matrix.build_type }}
runs-on: macos-12
timeout-minutes: 180
if: github.repository_owner == 'deNBI-cibi' || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
compiler: ["clang-18", "clang-15", "clang-14", "clang-13", "clang-12", "gcc-14", "gcc-10"]
cpp: [17]
build_type: [Release]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup compiler
uses: seqan/actions/setup-compiler@main
with:
compiler: ${{ matrix.compiler }}
- name: Configure tests
run: |
mkdir build && cd build
cmake ../ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Werror" \
-DCMAKE_CXX_STANDARD=${{ matrix.cpp }}
- name: Build tests
working-directory: build
run: make -k
- name: Run tests
working-directory: build
run: ctest . -j --output-on-failure