Skip to content

Commit f1a4fc4

Browse files
committed
Remove redhat and try to install dolfinx from source
1 parent 85de7e7 commit f1a4fc4

File tree

2 files changed

+41
-96
lines changed

2 files changed

+41
-96
lines changed

.github/workflows/test_redhat.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

.github/workflows/test_workflow.yml

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,52 @@ on:
88
type: string
99

1010
jobs:
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

0 commit comments

Comments
 (0)