Skip to content

Commit 0057628

Browse files
CodeGatblimlim
andauthored
Infra Update v8: spack v1 Support (#168)
* infra: Update to v8 * Set oasis3-mct target=x86_64_v2 for reproducibility * Update version to 2026.02.001 for deployment --------- Co-authored-by: Spencer Wong <spencer.wong@anu.edu.au>
1 parent a6b2d25 commit 0057628

5 files changed

Lines changed: 50 additions & 55 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +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-
root-sbd: access-esm1p6
17-
spack-manifest-schema-version: 1-0-7
18-
config-versions-schema-version: 3-0-0
16+
spack-manifest-schema-version: 2-0-0
17+
config-versions-schema-version: 4-0-0
1918
config-packages-schema-version: 1-0-0
2019
permissions:
2120
contents: write

.github/workflows/ci-command.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ 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
18-
root-sbd: access-esm1p6
1917
permissions:
2018
pull-requests: write
2119
contents: write
@@ -24,22 +22,20 @@ jobs:
2422
bump:
2523
name: Bump
2624
if: startsWith(github.event.comment.body, '!bump') && github.event.issue.pull_request
27-
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v7
25+
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v8
2826
with:
2927
model: ${{ vars.NAME }}
30-
root-sbd: access-esm1p6
3128
permissions:
3229
pull-requests: write
3330
contents: write
3431
secrets: inherit
3532
configs:
3633
name: Configs
3734
if: startsWith(github.event.comment.body, '!update-configs') && github.event.issue.pull_request
38-
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
3936
with:
4037
model: ${{ vars.NAME }}
4138
auto-configs-pr-schema-version: 1-0-0
42-
root-sbd: access-esm1p6
4339
permissions:
4440
pull-requests: write
4541
secrets:

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ jobs:
2020
pr-ci:
2121
name: CI
2222
if: github.event.action != 'closed'
23-
uses: access-nri/build-cd/.github/workflows/ci.yml@v7
23+
uses: access-nri/build-cd/.github/workflows/ci.yml@v8
2424
with:
2525
model: ${{ vars.NAME }}
26-
root-sbd: access-esm1p6
27-
pr: ${{ github.event.pull_request.number }}
28-
spack-manifest-schema-version: 1-0-7
29-
config-versions-schema-version: 3-0-0
26+
spack-manifest-schema-version: 2-0-0
27+
config-versions-schema-version: 4-0-0
3028
config-packages-schema-version: 1-0-0
3129
permissions:
3230
pull-requests: write
@@ -36,7 +34,5 @@ jobs:
3634
pr-closed:
3735
name: Closed
3836
if: github.event.action == 'closed'
39-
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v7
40-
with:
41-
root-sbd: access-esm1p6
37+
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v8
4238
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://github.com/ACCESS-NRI/schema/blob/main/au.org.access-nri/model/deployment/config/versions/3-0-0.json",
3-
"spack": "0.22",
4-
"spack-packages": "2026.02.000"
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.02.002",
5+
"custom-scopes": [
6+
"ukmo-restricted-scope"
7+
]
58
}

spack.yaml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,76 +8,77 @@
88
# - MOM5 from master branch with access-generic-tracers (wombatlite) as a library
99
# - CICE5
1010
spack:
11+
definitions:
12+
# _name and _version are reserved definitions that inform build-cd deployments, and have no effect otherwise
13+
- _name: [access-esm1p6]
14+
- _version: [2026.02.001]
1115
specs:
12-
- access-esm1p6@git.2026.02.000 cice=5
16+
- access-esm1p6 cice=5
1317
packages:
1418
# Coupler
1519
oasis3-mct:
1620
require:
17-
- '@5.2'
21+
- '@5.2'
22+
- 'target=x86_64_v2'
1823
# Major components
1924
cice5:
2025
require:
21-
- '@2026.01.000'
22-
- 'nxglob=360 nyglob=300 blckx=30 blcky=300 mxblcks=1' # grid size and block size
26+
- '@2026.01.000'
27+
- 'nxglob=360 nyglob=300 blckx=30 blcky=300 mxblcks=1' # grid size and block size
2328
um7:
2429
require:
25-
- '@git.2026.02.000=access-esm1.6'
30+
- '@git.2026.02.000=access-esm1.6'
2631
cable:
2732
require:
28-
- '@2025.11.000'
29-
- library=access-esm1.6
33+
- '@2025.11.000'
34+
- library=access-esm1.6
3035
mom5:
3136
require:
32-
- '@git.2025.05.000=access-esm1.6'
37+
- '@git.2025.05.000=access-esm1.6'
3338
# Model dependencies
3439
# MOM5
3540
access-fms:
3641
require:
37-
- '@git.mom5-2025.08.000=mom5'
42+
- '@git.mom5-2025.08.000=mom5'
3843
access-generic-tracers:
3944
require:
40-
- '@2025.09.000'
45+
- '@2025.09.000'
4146
access-mocsy:
4247
require:
43-
- '@2025.07.002'
48+
- '@2025.07.002'
4449
# UM7
4550
gcom4:
4651
require:
47-
- '@git.2025.08.000=access-esm1.5'
52+
- '@git.2025.08.000=access-esm1.5'
4853
# Shared dependencies
4954
openmpi:
5055
require:
51-
- '@5.0.8'
56+
- '@5.0.8'
5257
netcdf-c:
5358
require:
54-
- '@4.9.2'
59+
- '@4.9.2'
5560
netcdf-fortran:
5661
require:
57-
- '@4.6.1'
62+
- '@4.6.1'
5863
hdf5:
5964
require:
60-
- '@1.14.3'
61-
# System dependencies
62-
gcc-runtime:
65+
- '@1.14.3'
66+
67+
# Compilers
68+
c:
69+
require:
70+
- 'intel-oneapi-compilers@2025.2.0'
71+
cxx:
6372
require:
64-
- '%gcc'
65-
glibc:
73+
- 'intel-oneapi-compilers@2025.2.0'
74+
fortran:
6675
require:
67-
- '@2.28'
68-
- '%gcc'
76+
- 'intel-oneapi-compilers@2025.2.0'
6977

7078
# Preferences for all packages
7179
all:
72-
require:
73-
- '%oneapi@2025.2.0'
74-
- 'target=x86_64_v4'
80+
prefer:
81+
- 'target=x86_64_v4'
7582
view: true
7683
concretizer:
7784
unify: true
78-
config:
79-
install_tree:
80-
root: $spack/../restricted/ukmo/release
81-
source_cache: $spack/../restricted/ukmo/source_cache
82-
build_stage:
83-
- $TMPDIR/restricted/spack-stage

0 commit comments

Comments
 (0)