Skip to content

Commit a2e268d

Browse files
CodeGatWhyborn
andauthored
[no ci] Infra Update v8: spack v1 Support (#13)
* [no ci] infra: Update to v8 * [no ci] Update access-spack-packages to 2026.03.004 (fixes fiat@um missing patch bug) * [no ci] Update access-spack-packages to 2026.03.005 (GitHub-based um) * [no ci] Point to correct github ref for ukca --------- Co-authored-by: Lachlan Whyborn <lachlan.whyborn@anu.edu.au>
1 parent 83bb3ec commit a2e268d

5 files changed

Lines changed: 47 additions & 41 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
jobs:
1111
cd:
1212
name: CD
13-
uses: access-nri/build-cd/.github/workflows/cd.yml@v7
13+
uses: access-nri/build-cd/.github/workflows/cd.yml@v8
1414
with:
1515
model: ${{ vars.NAME }}
16-
spack-manifest-schema-version: 1-0-7
17-
config-versions-schema-version: 3-0-0
16+
spack-manifest-schema-version: 2-0-0
17+
config-versions-schema-version: 4-0-0
1818
config-packages-schema-version: 1-0-0
1919
permissions:
2020
contents: write

.github/workflows/ci-command.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ jobs:
88
redeploy:
99
name: Redeploy
1010
if: startsWith(github.event.comment.body, '!redeploy') && github.event.issue.pull_request
11-
uses: access-nri/build-cd/.github/workflows/ci.yml@v7
11+
uses: access-nri/build-cd/.github/workflows/ci.yml@v8
1212
with:
1313
model: ${{ vars.NAME }}
14-
pr: ${{ github.event.issue.number }}
15-
spack-manifest-schema-version: 1-0-7
16-
config-versions-schema-version: 3-0-0
14+
spack-manifest-schema-version: 2-0-0
15+
config-versions-schema-version: 4-0-0
1716
config-packages-schema-version: 1-0-0
1817
permissions:
1918
pull-requests: write
@@ -23,7 +22,7 @@ jobs:
2322
bump:
2423
name: Bump
2524
if: startsWith(github.event.comment.body, '!bump') && github.event.issue.pull_request
26-
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v7
25+
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v8
2726
with:
2827
model: ${{ vars.NAME }}
2928
permissions:
@@ -33,7 +32,7 @@ jobs:
3332
configs:
3433
name: Configs
3534
if: startsWith(github.event.comment.body, '!update-configs') && github.event.issue.pull_request
36-
uses: access-nri/build-cd/.github/workflows/ci-command-configs.yml@v7
35+
uses: access-nri/build-cd/.github/workflows/ci-command-configs.yml@v8
3736
with:
3837
model: ${{ vars.NAME }}
3938
auto-configs-pr-schema-version: 1-0-0

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ on:
1717
jobs:
1818
pr-ci:
1919
name: CI
20-
if: >-
21-
github.event.action != 'closed'
22-
uses: access-nri/build-cd/.github/workflows/ci.yml@v7
20+
if: github.event.action != 'closed'
21+
uses: access-nri/build-cd/.github/workflows/ci.yml@v8
2322
with:
2423
model: ${{ vars.NAME }}
25-
pr: ${{ github.event.pull_request.number }}
26-
spack-manifest-schema-version: 1-0-7
27-
config-versions-schema-version: 3-0-0
24+
spack-manifest-schema-version: 2-0-0
25+
config-versions-schema-version: 4-0-0
2826
config-packages-schema-version: 1-0-0
2927
permissions:
3028
pull-requests: write
@@ -34,7 +32,5 @@ jobs:
3432
pr-closed:
3533
name: Closed
3634
if: github.event.action == 'closed'
37-
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v7
38-
with:
39-
root-sbd: ${{ vars.NAME }}
35+
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v8
4036
secrets: inherit

config/versions.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/ACCESS-NRI/schema/main/au.org.access-nri/model/deployment/config/versions/3-0-0.json",
3-
"spack": "0.22",
4-
"spack-packages": "2025.09.004"
2+
"$schema": "https://raw.githubusercontent.com/ACCESS-NRI/schema/main/au.org.access-nri/model/deployment/config/versions/4-0-0.json",
3+
"spack": "1.1",
4+
"access-spack-packages": "2026.03.005",
5+
"custom-scopes": [
6+
"ukmo-restricted-scope"
7+
]
58
}

spack.yaml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,59 @@
33
# It describes a set of packages to be installed, along with
44
# configuration settings.
55
spack:
6+
definitions:
7+
# _name and _version are reserved definitions that inform build-cd deployments, and have no effect otherwise
8+
- _name: [access-am3]
9+
- _version: [2026.02.000]
610
specs:
7-
- access-am3@git.2026.02.000
11+
- access-am3
812
packages:
913
# Direct dependencies
1014
um:
1115
require:
12-
- '@13.1'
13-
- model="vn13p1-am"
14-
- jules_ref="2026.01.0"
15-
- um_ref="2026.01.0"
16+
- '@13.1'
17+
- model="vn13p1-am"
18+
- jules_ref="2026.01.0"
19+
- um_ref="2026.01.0"
20+
- ukca_ref="615a547a060ef80ae6019cf63d409602473e1e68"
1621

1722
# Indirect dependencies
1823
netcdf-c:
1924
require:
20-
- '@4.9.2'
25+
- '@4.9.2'
2126

2227
netcdf-fortran:
2328
require:
24-
- '@4.5.2'
29+
- '@4.5.2'
2530

2631
fcm:
2732
require:
28-
- '@2021.05.0'
29-
# TODO: Generalize this Gadi-specific variant for spack.yaml
30-
- 'site=nci-gadi'
33+
- '@2021.05.0'
34+
# TODO: Generalize this Gadi-specific variant for spack.yaml
35+
- 'site=nci-gadi'
3136

3237
gcom:
3338
require:
34-
- '@7.9'
39+
- '@7.9'
3540

3641
openmpi:
3742
require:
38-
- '@4.1.7'
43+
- '@4.1.7'
44+
# Compilers
45+
c:
46+
require:
47+
- intel-oneapi-compilers-classic@2021.10.0
48+
cxx:
49+
require:
50+
- intel-oneapi-compilers-classic@2021.10.0
51+
fortran:
52+
require:
53+
- intel-oneapi-compilers-classic@2021.10.0
3954

4055
# Specifications that apply to all packages
4156
all:
4257
require:
43-
- '%intel@2021.10.0'
44-
- target=x86_64_v4
58+
- target=x86_64_v4
4559
view: true
4660
concretizer:
4761
unify: true
48-
config:
49-
install_tree:
50-
root: $spack/../restricted/ukmo/release
51-
source_cache: $spack/../restricted/ukmo/source_cache
52-
build_stage:
53-
- $TMPDIR/restricted/spack-stage

0 commit comments

Comments
 (0)