From 3666fbfbcef9fb1af9a4ae5ce0d5e67eb9e501ab Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Wed, 26 Feb 2025 11:12:02 +0100 Subject: [PATCH] Added matrix strategies for linux workflows. --- .github/workflows/linux.yml | 45 +++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 063f8407b3..29f6a79cad 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -31,8 +31,8 @@ jobs: linux-release-serial: # simple serial release build using g++ - name: linux release serial - runs-on: [ubuntu-22.04] + name: ${{ matrix.os }} release serial + runs-on: ${{ matrix.os }} # # The following condition only runs the workflow on 'push' or if the @@ -42,8 +42,17 @@ jobs: # # if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-22.04 + image: dealii/dependencies:jammy + - os: ubuntu-24.04 + image: dealii/dependencies:jammy + container: - image: dealii/dependencies:jammy + image: ${{ matrix.image }} options: --user root steps: @@ -86,8 +95,8 @@ jobs: linux-debug-parallel: # simple parallel debug build using g++ - name: linux debug parallel - runs-on: [ubuntu-22.04] + name: ${{ matrix.os }} debug parallel + runs-on: ${{ matrix.os }} # # The following condition only runs the workflow on 'push' or if the @@ -97,8 +106,17 @@ jobs: # # if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-22.04 + image: dealii/dependencies:jammy + - os: ubuntu-24.04 + image: dealii/dependencies:jammy + container: - image: dealii/dependencies:jammy + image: ${{ matrix.image }} options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 steps: @@ -149,8 +167,8 @@ jobs: linux-debug-parallel-tpetra: # simple parallel debug build using g++ and trilinos+tpetra - name: linux debug parallel tpetra - runs-on: [ubuntu-22.04] + name: ${{ matrix.os }} debug parallel tpetra + runs-on: ${{ matrix.os }} # # The following condition only runs the workflow on 'push' or if the @@ -160,8 +178,17 @@ jobs: # # if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-22.04 + image: dealii/dependencies:jammy + - os: ubuntu-24.04 + image: dealii/dependencies:jammy + container: - image: dealii/dependencies:jammy + image: ${{ matrix.image }} options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 steps: -- 2.39.5