diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 624ee52..a2ba002 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -10,11 +10,11 @@ on: jobs: cd: name: CD - uses: access-nri/build-cd/.github/workflows/cd.yml@v7 + uses: access-nri/build-cd/.github/workflows/cd.yml@334-spack-v1-migration-config-removal-from-manifest_TEST with: model: ${{ vars.NAME }} - spack-manifest-schema-version: 1-0-7 - config-versions-schema-version: 3-0-0 + spack-manifest-schema-version: 2-0-0 + config-versions-schema-version: 4-0-0 config-packages-schema-version: 1-0-0 permissions: contents: write diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef56a62..12c4ba8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,15 +19,14 @@ on: jobs: pr-ci: name: CI - if: >- - github.event.action != 'closed' - uses: access-nri/build-cd/.github/workflows/ci.yml@v7 + if: github.event.action != 'closed' + uses: access-nri/build-cd/.github/workflows/ci.yml@334-spack-v1-migration-config-removal-from-manifest_TEST with: model: ${{ vars.NAME }} # root-sbd: if different from vars.NAME pr: ${{ github.event.pull_request.number }} - spack-manifest-schema-version: 1-0-7 - config-versions-schema-version: 3-0-0 + spack-manifest-schema-version: 2-0-0 + config-versions-schema-version: 4-0-0 config-packages-schema-version: 1-0-0 permissions: pull-requests: write @@ -37,7 +36,7 @@ jobs: pr-closed: name: Closed if: github.event.action == 'closed' - uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v7 + uses: access-nri/build-cd/.github/workflows/ci-closed.yml@334-spack-v1-migration-config-removal-from-manifest_TEST with: root-sbd: access-test secrets: inherit diff --git a/config/versions.json b/config/versions.json index 3b948ab..379f72f 100644 --- a/config/versions.json +++ b/config/versions.json @@ -1,5 +1,6 @@ { - "$schema": "https://github.com/ACCESS-NRI/schema/blob/main/au.org.access-nri/model/deployment/config/versions/3-0-0.json", - "spack": "0.22", - "spack-packages": "main" + "$schema": "https://raw.githubusercontent.com/ACCESS-NRI/schema/main/au.org.access-nri/model/deployment/config/versions/4-0-0.json", + "spack": "1.1", + "access-spack-packages": "api-v2", + "custom-scopes": ["ukmo-restricted-scope"] } diff --git a/spack.yaml b/spack.yaml index b560db6..bd1a95d 100644 --- a/spack.yaml +++ b/spack.yaml @@ -3,22 +3,32 @@ # It describes a set of packages to be installed, along with # configuration settings. spack: + definitions: + # _name and _version are reserved definitions that inform build-cd deployments, and have no effect otherwise + - _name: [access-test] + - _version: [2025.09.000] specs: - - access-test@git.2025.09.000 + - access-test packages: access-test-component: require: - - '@main' + - '@main' openmpi: require: - - '@4.1.5' + - '@4.1.5' gcc-runtime: require: - - '%gcc' + - '%access_gcc' + + # Compilers + intel-oneapi-compilers-classic: + require: + - '@2021.10.0' + all: require: - - '%intel@2021.10.0' - - 'target=x86_64' + - '%access_intel' + - 'target=x86_64' view: true concretizer: unify: true