Skip to content

Commit 582951c

Browse files
committed
Minor update to the build workflow for turning intel/gcc on or off
1 parent 05cfcee commit 582951c

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ on:
1313
type: string
1414
default: ""
1515
description: "Path to Intel configuration file"
16+
INTEL:
17+
type: boolean
18+
default: false
19+
description: "Whether to run Intel-specific build and test steps (if false, runs GCC steps)"
20+
GCC:
21+
type: boolean
22+
default: true
23+
description: "Whether to run GCC-specific build and test steps (if false, runs Intel steps)"
1624
BUILD_SCRIPT:
1725
type: string
1826
default: ".github/build_real.sh"
@@ -47,15 +55,19 @@ env:
4755

4856
jobs:
4957
build-and-test:
50-
if: matrix.CONFIG_FILE != ''
58+
if: |
59+
(matrix.TOOLCHAIN == 'gcc' && inputs.GCC) ||
60+
(matrix.TOOLCHAIN == 'intel' && inputs.INTEL)
5161
runs-on: ubuntu-24.04
5262
timeout-minutes: ${{ inputs.TIMEOUT }}
5363
strategy:
5464
matrix:
5565
include:
56-
- DOCKER_TAG: u24-gcc-ompi-latest
66+
- TOOLCHAIN: gcc
67+
DOCKER_TAG: u24-gcc-ompi-latest
5768
CONFIG_FILE: ${{ inputs.GCC_CONFIG }}
58-
- DOCKER_TAG: u24-intel-ompi-latest
69+
- TOOLCHAIN: intel
70+
DOCKER_TAG: u24-intel-ompi-latest
5971
CONFIG_FILE: ${{ inputs.INTEL_CONFIG }}
6072
steps:
6173
- name: Checkout repository

0 commit comments

Comments
 (0)