File tree Expand file tree Collapse file tree 2 files changed +41
-96
lines changed
Expand file tree Collapse file tree 2 files changed +41
-96
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88 type : string
99
1010jobs :
11+
12+ get_image_tag :
13+ runs-on : ubuntu-latest
14+ outputs :
15+ image : ${{ steps.docker_tag.outputs.image }}
16+ steps :
17+
18+ - name : Validate inputs
19+ run : |
20+ if [[ "${{ inputs.dolfinx_tag }}" != "stable" && "${{ inputs.dolfinx_tag }}" != "nightly"; then
21+ echo "::error::Invalid DOLFINx enviroment: ${{ inputs.dolfinx_tag }}. Allowed values: stable, nightly"
22+ exit 1
23+ fi
24+
25+ - id : Nightly
26+ if : (${{ inputs.dolfinx_tag }} == 'nightly')
27+ run : |
28+ echo "branch=main" >> $GITHUB_OUTPUT
29+ echo "image=current" >> $GITHUB_OUTPUT
30+
31+ - id : Stable
32+ if : (${{ inputs.dolfinx_tag }} == 'stable')
33+ run : |
34+ echo "branch=release" >> $GITHUB_OUTPUT
35+ echo "image=stable" >> $GITHUB_OUTPUT
36+
37+
1138 test-code :
12- runs-on : ubuntu-24.04
13- # The container tag is now dynamic based on the input passed by the caller
14- container : ghcr.io/fenics/dolfinx/dolfinx:${{ inputs.dolfinx_tag }}
39+ runs-on : ubuntu-latest
40+ needs : get_image_tag
41+
42+ runs-on : ubuntu-latest
43+ container : ghcr.io/fenics/dolfinx/dolfinx:${{ needs.get_image_tag.outputs.image }}
1544
1645 steps :
1746 - uses : actions/checkout@v6
1847
48+ - name : Install DOLFINx
49+ uses : jorgensd/actions/install-dolfinx@v0.4
50+ with :
51+ dolfinx : ${{ needs.get_image_tag.outputs.branch }}
52+ basix : ${{ needs.get_image_tag.outputs.branch }}
53+ ufl : ${{ needs.get_image_tag.outputs.branch }}
54+ ffcx : ${{ needs.get_image_tag.outputs.branch }}
55+ working-directory : ${{ env.working-directory}}
56+
1957 - name : Update pip
2058 run : python3 -m pip install --upgrade pip
2159
You can’t perform that action at this time.
0 commit comments