Skip to content

again again fix github workflow #4

again again fix github workflow

again again fix github workflow #4

name: Build and Run Unit Tests
on:
push:
branches: [ "main", "dane_dev" ]
pull_request:
branches: [ "main", "dane_dev" ]
jobs:
build_ICC_MPI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Spack
uses: spack/setup-spack@v2
with:
ref: develop # Spack version (examples: develop, releases/v0.23)
buildcache: true # Configure oci://ghcr.io/spack/github-actions-buildcache
color: true # Force color output (SPACK_COLOR=always)
path: spack # Where to clone Spack
- name: Install OpenMPI
run: |
spack install -j 4 openmpi
spack load openmpi
- name: Configure GCC_MPI
run: |
sed -E -i \
-e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
-e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \
-e 's/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1GCC/' \
Makefile
- name: Make GCC_MPI
run: |
make