88 merge_group :
99 branches : [main]
1010 workflow_dispatch :
11- inputs :
12- dolfinx_ref :
13- description : " DOLFINx branch or tag"
14- default : " main"
15- type : string
16- basix_ref :
17- description : " Basix branch or tag"
18- default : " main"
19- type : string
20- ufl_ref :
21- description : " UFL branch or tag"
22- default : " main"
23- type : string
2411 # Weekly build on Mondays at 8 am
2512 schedule :
2613 - cron : " 0 8 * * 1"
@@ -38,33 +25,21 @@ jobs:
3825 OMPI_MCA_rmaps_base_oversubscribe : true # Older OpenMPI
3926 steps :
4027 - uses : actions/checkout@v6
41- - name : Install UFL and Basix (default branches/tags)
42- if : github.event_name != 'workflow_dispatch'
28+ - name : Load environment variables
29+ run : cat .github/workflows/fenicsx-refs.env >> $GITHUB_ENV
30+ - name : Install UFL and Basix
4331 run : |
44- python3 -m pip install --break-system-packages git+https://github.com/FEniCS/ufl.git
45- python3 -m pip install --break-system-packages git+https://github.com/FEniCS/basix.git
46- - name : Install UFL and Basix (specified branches/tags)
47- if : github.event_name == 'workflow_dispatch'
48- run : |
49- python3 -m pip install --break-system-packages git+https://github.com/FEniCS/ufl.git@${{ github.event.inputs.ufl_ref }}
50- python3 -m pip install --break-system-packages git+https://github.com/FEniCS/basix.git@${{ github.event.inputs.basix_ref }}
32+ python3 -m pip install --break-system-packages git+https://github.com/${{ env.ufl_repository }}.git@${{ env.ufl_ref }}
33+ python3 -m pip install --break-system-packages git+https://github.com/${{ env.basix_repository }}.git@${{ env.basix_ref }}
5134 - name : Install FFCx
5235 run : |
5336 pip3 install --break-system-packages .
54- - name : Get DOLFINx source (default branch/tag)
55- if : github.event_name != 'workflow_dispatch'
56- uses : actions/checkout@v6
57- with :
58- path : ./dolfinx
59- repository : FEniCS/dolfinx
60- ref : main
61- - name : Get DOLFINx source (specified branch/tag)
62- if : github.event_name == 'workflow_dispatch'
37+ - name : Get DOLFINx source
6338 uses : actions/checkout@v6
6439 with :
6540 path : ./dolfinx
66- repository : FEniCS/dolfinx
67- ref : ${{ github.event.inputs .dolfinx_ref }}
41+ repository : ${{ env.dolfinx_repository }}
42+ ref : ${{ env .dolfinx_ref }}
6843 - name : Install DOLFINx (C++)
6944 run : |
7045 cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -DBUILD_TESTING=true -B build -S dolfinx/cpp/
0 commit comments