Skip to content

Commit

Permalink
Update Spack CI
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed May 10, 2024
1 parent dbbbf91 commit 38b57bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
PRTE_MCA_rmaps_default_mapping_policy: :oversubscribe # Newer OpenMPI
OMPI_MCA_rmaps_base_oversubscribe: true # Older OpenMPI

DOLFINX_RELEASE_VERSION: "${{ github.event_name != 'workflow_dispatch' && 0.8 || github.event.inputs.dolfinx_version }}"

steps:
- name: Get Spack
if: github.event_name != 'workflow_dispatch'
Expand Down Expand Up @@ -85,19 +87,19 @@ jobs:
. ./spack/share/spack/setup-env.sh
spack env create cpp-release
spack env activate cpp-release
spack add fenics-dolfinx@${{ github.event.inputs.dolfinx_version }}+adios2
spack add fenics-dolfinx@${DOLFINX_RELEASE_VERSION}+adios2
spack install
- name: Get DOLFINx release code (to access test files)
uses: actions/checkout@v4
with:
ref: v${{ github.event.inputs.dolfinx_version }}
ref: v${{ env.DOLFINX_RELEASE_VERSION }}
path: ./dolfinx-release
- name: Run a C++ test (release version)
run: |
. ./spack/share/spack/setup-env.sh
spack env create cpp-release-test
spack env activate cpp-release-test
spack add fenics-dolfinx@${{ github.event.inputs.dolfinx_version }}+adios2 cmake py-fenics-ffcx
spack add fenics-dolfinx@${DOLFINX_RELEASE_VERSION}+adios2 cmake py-fenics-ffcx
spack install
cd dolfinx-release/cpp/
cd demo/poisson
Expand All @@ -124,7 +126,7 @@ jobs:
. ./spack/share/spack/setup-env.sh
spack env create py-release
spack env activate py-release
spack add py-fenics-dolfinx@${{ github.event.inputs.dolfinx_version }}
spack add py-fenics-dolfinx@${DOLFINX_RELEASE_VERSION}
spack install -j 4
- name: Run DOLFINx (Python, release) test
run: |
Expand Down

0 comments on commit 38b57bd

Please sign in to comment.