Skip to content

Commit

Permalink
Set release version via actions
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed May 3, 2024
1 parent c6aa0c2 commit 68a39c9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
description: "Spack repository branch/tag to test"
default: "develop"
type: string
dolfinx_version:
description: "DOLFINx release branch/tag to test"
default: "v0.8.0"
type: string

jobs:
build:
Expand Down Expand Up @@ -81,20 +85,19 @@ jobs:
. ./spack/share/spack/setup-env.sh
spack env create cpp-release
spack env activate cpp-release
spack add fenics-dolfinx+adios2
spack add fenics-dolfinx@${{ github.event.inputs.dolfinx_version }}+adios2
spack install
- name: Get DOLFINx release code (to access test files)
uses: actions/checkout@v4
with:
ref: v0.8.0
# ref: v${{ github.event.inputs.spack_branch }}
ref: ${{ github.event.inputs.dolfinx_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+adios2 cmake py-fenics-ffcx
spack add fenics-dolfinx@${{ github.event.inputs.dolfinx_version }}+adios2 cmake py-fenics-ffcx
spack install
cd dolfinx-release/cpp/
cd demo/poisson
Expand All @@ -121,7 +124,7 @@ jobs:
. ./spack/share/spack/setup-env.sh
spack env create py-release
spack env activate py-release
spack add py-fenics-dolfinx
spack add py-fenics-dolfinx@${{ github.event.inputs.dolfinx_version }}
spack install -j 4
- name: Run DOLFINx (Python, release) test
run: |
Expand Down

0 comments on commit 68a39c9

Please sign in to comment.