Skip to content

Commit 26c48ad

Browse files
committed
dep-image-*.yml: Added spack-config-version input, workflow now uses compiler-package-version
1 parent 5f9e3cf commit 26c48ad

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/dep-image-1-start.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ on:
77
required: true
88
type: string
99
default: "main"
10-
description: "Either a git tag or branch name for the ACCESS-NRI/spack-packages repository, which defaults to the main branch"
10+
description: "Either a git tag or branch name for the ACCESS-NRI/spack-packages repository"
11+
spack-config-version:
12+
required: true
13+
type: string
14+
default: "main"
15+
description: "Either a git tag or branch name for the ACCESS-NRI/spack-config repository"
1116
model:
1217
required: true
1318
type: string
@@ -52,8 +57,10 @@ jobs:
5257
with:
5358
compiler-name: ${{ matrix.compiler.name }}
5459
compiler-package: ${{ matrix.compiler.package }}
60+
compiler-package-version: ${{ matrix.compiler.package-version }}
5561
compiler-version: ${{ matrix.compiler.version }}
5662
spack-packages-version: ${{ inputs.spack-packages-version }}
63+
spack-config-version: ${{ inputs.spack-config-version }}
5764
models: ${{ needs.generate-matrix.outputs.models }}
5865
permissions:
5966
packages: write

.github/workflows/dep-image-2-build.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ on:
55
spack-packages-version:
66
description: the tag/branch of the access-nri/spack-packages repo to use
77
type: string
8+
spack-config-version:
9+
description: the tag/branch of the access-nri/spack-config repo to use
10+
type: string
811
compiler-name:
912
description: the short name of the compiler
1013
type: string
1114
compiler-package:
1215
description: the spack-specific package name of the compiler
1316
type: string
17+
compiler-package-version:
18+
description: the spack-specific version of the compiler package
19+
type: string
1420
compiler-version:
15-
description: the spack-specific package version of the compiler
21+
description: the spack-specific version of the compiler
1622
type: string
1723
models:
1824
description: a json-string array of all models to be built in a matrix strategy
@@ -55,9 +61,11 @@ jobs:
5561
target: "ci"
5662
build-args: |
5763
SPACK_PACKAGES_REPO_VERSION=${{ inputs.spack-packages-version }}
64+
SPACK_CONFIG_REPO_VERSION=${{ inputs.spack-config-version }}
5865
COMPILER_NAME=${{ inputs.compiler-name }}
59-
COMPILER_PACKAGE=${{ inputs.compiler-package }}
6066
COMPILER_VERSION=${{ inputs.compiler-version }}
67+
COMPILER_PKG_NAME=${{ inputs.compiler-package }}
68+
COMPILER_PKG_VERSION=${{ inputs.compiler-package-version }}
6169
build-secrets: |
6270
S3_ACCESS_KEY_ID=${{ secrets.S3_ACCESS_KEY_ID }}
6371
S3_ACCESS_KEY_SECRET=${{ secrets.S3_ACCESS_KEY_SECRET }}

0 commit comments

Comments
 (0)