Skip to content

Commit

Permalink
patch: using modern IVaction macos ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Nov 10, 2023
1 parent d49fb0e commit 4df83ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 80 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ on:
pull_request:

concurrency:
group: linux-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.action }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: linux-${{ matrix.compiler }}
name: ${{ matrix.compiler }}
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
Expand All @@ -31,7 +31,7 @@ jobs:
- "clang16-cpp20-release"
steps:
- name: Standard IV-project testing
uses: iv-project/IVaction/linux-testing@feat/simpler_ci
uses: iv-project/IVaction/linux-testing@feat/macos-testing
with:
compiler: ${{ matrix.compiler }}
threads: 2
92 changes: 15 additions & 77 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
@@ -1,99 +1,37 @@
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
# SPDX-License-Identifier: CC0-1.0

name: "MacOS"

on:
push:
branches:
# Push events to branches matching refs/heads/master
- 'main'
pull_request:

concurrency:
group: macos-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.action }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
TZ: Europe/Berlin

jobs:
build:
name: ${{ matrix.os }} / ${{ matrix.compiler }}
name: ${{ matrix.compiler }}
runs-on: macos-12
timeout-minutes: 120
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
osname: ["MacOS 12"]
compiler: ["gcc13 (c++20)", "gcc12 (c++20)", "gcc11 (c++20)", "gcc13 (c++20, Debug)"]

include:
- osname: "MacOS 12"
os: macos-12
cmake_flags: "-DFMC_USE_SDSL=NO"
threads: 3

- compiler: "gcc13 (c++20)"
cxx: "g++-13"
cc: "gcc-13"
build_type: Release
brew_pkgs: gcc@13

- compiler: "gcc12 (c++20)"
cxx: "g++-12"
cc: "gcc-12"
build_type: Release
brew_pkgs: gcc@12

- compiler: "gcc11 (c++20)"
cxx: "g++-11"
cc: "gcc-11"
build_type: Release
brew_pkgs: gcc@11

- compiler: "gcc13 (c++20, Debug)"
cxx: "g++-13"
cc: "gcc-13"
build_type: Debug
brew_pkgs: gcc@13
compiler:
- "gcc13-cpp20-release"
- "gcc12-cpp20-release"
- "gcc11-cpp20-release"
- "gcc13-cpp20-debug"
- "clang15-cpp20-release"
- "clang16-cpp20-release"
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Standard IV-project testing
uses: iv-project/IVaction/macos-testing@feat/macos-testing
with:
path: fmc
fetch-depth: 1

- name: Install Tools on Mac
run: |
touch ${HOME}/.activate_brew
brew update-reset
brew install --force-bottle --overwrite fmt boost cmake ${{ matrix.brew_pkgs }} pkg-config
- name: Tool versions
run: |
source ${HOME}/.activate_brew
cmake --version
${{ matrix.cxx }} --version
- name: Configure tests
env:
CXX: ${{ matrix.cxx }}
CC: ${{ matrix.cc }}
run: |
source ${HOME}/.activate_brew
mkdir fmc-build
cd fmc-build
cmake ../fmc -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.cmake_flags }}
- name: Build tests
run: |
source ${HOME}/.activate_brew
cd fmc-build
make -k -j2
- name: Run tests
run: |
source ${HOME}/.activate_brew
cd fmc-build
ctest . -j ${{ matrix.threads }} --output-on-failure
compiler: ${{ matrix.compiler }}
threads: 3

0 comments on commit 4df83ac

Please sign in to comment.