-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Cristian Le <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
name: Check on ${{ matrix.toolchain }} toolchain | ||
name: Check on ${{ matrix.toolchain }} toolchain ${{ matrix.mpi }} | ||
runs-on: ${{ matrix.os || 'ubuntu-latest' }} | ||
container: ${{ !matrix.os && 'ghcr.io/lecrisut/dev-env:main' || '' }} | ||
needs: [ pre-commit ] | ||
|
@@ -30,22 +30,33 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
toolchain: [ gcc, llvm, intel ] | ||
mpi: ['', openmpi, mpich, intel] | ||
include: | ||
# flang is missing features in 16.0.6 | ||
- toolchain: llvm | ||
experimental: true | ||
steps: | ||
- name: Install missing packages | ||
run: dnf install -y bzip2 python-unversioned-command | ||
- name: Load mpi module ${{ matrix.mpi }} | ||
run: | | ||
# Get interactive profile to be able to load modules | ||
source /etc/profile | ||
# Load the relevant mpi module | ||
module load mpi/${{ matrix.mpi }} | ||
printenv >> $GITHUB_ENV | ||
# Set MPI flag on | ||
echo "WITH_MPI=ON" >> $GITHUB_ENV | ||
if: ${{ matrix.mpi }} | ||
- name: Enable msvc toolchain on windows | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
if: contains(matrix.os, 'windows') | ||
- name: Activate Intel compilers | ||
# Not elegant, it will propagate all environment variable. | ||
# Intel does not provide a way to output the environment variables to a file | ||
# Note: PATH needs to be exported to GITHUB_PATH otherwise it can be overwritten | ||
run: | | ||
source /opt/intel/oneapi/setvars.sh | ||
source /etc/profile | ||
module load compiler | ||
printenv >> $GITHUB_ENV | ||
echo $PATH >> $GITHUB_PATH | ||
if: matrix.toolchain == 'intel' | ||
|
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