ci: update compiler version #76
Workflow file for this run
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
# 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: Windows MinGW | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: mingw-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: ${{ github.event_name != 'push' }} | |
env: | |
TZ: Europe/Berlin | |
defaults: | |
run: | |
shell: bash -Eexuo pipefail {0} | |
jobs: | |
build: | |
name: ${{ matrix.name }} | |
runs-on: windows-2022 | |
timeout-minutes: 180 | |
if: github.repository_owner == 'deNBI-cibi' || github.event_name == 'workflow_dispatch' | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "Latest" | |
build_type: Release | |
steps: | |
- name: Checkout TDL | |
uses: actions/checkout@v4 | |
with: | |
path: tdl | |
fetch-depth: 2 | |
- name: Configure tests | |
run: | | |
mkdir tdl-build | |
cd tdl-build | |
cmake ../tdl -G "MinGW Makefiles" \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Wa,-mbig-obj" | |
- name: Build tests | |
run: | | |
cd tdl-build | |
make -k -j2 | |
- name: Run tests | |
run: | | |
cd tdl-build | |
PATH="/c/mingw64/bin/:${PATH}" | |
ctest . -j2 --output-on-failure | |