Skip to content

Commit eea2c1e

Browse files
committed
bump
Signed-off-by: Harmen Stoppels <harmenstoppels@gmail.com>
1 parent 2f4a924 commit eea2c1e

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
packages: write
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525

2626
- name: Setup Spack
27-
uses: spack/setup-spack@5ab3c91bdefffffad9a7e45d1d156146afebb3a7
27+
uses: spack/setup-spack@v3
2828

2929
- name: Find compilers
3030
run: spack -e . compiler find --mixed-toolchain
@@ -46,7 +46,5 @@ jobs:
4646
env:
4747
GITHUB_USER: ${{ github.actor }}
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
run: |
50-
spack mirror set --push --oci-username-variable GITHUB_USER --oci-password-variable GITHUB_TOKEN github-actions-buildcache
51-
spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:20.04 --update-index github-actions-buildcache
49+
run: spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:20.04 --update-index github-actions-buildcache
5250
if: ${{ !cancelled() }}

.github/workflows/update-index.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
packages: write
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Setup Spack
18-
uses: spack/setup-spack@5ab3c91bdefffffad9a7e45d1d156146afebb3a7
18+
uses: spack/setup-spack@v3
1919

20-
- name: Push packages and update index
21-
run: |
22-
spack mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" github-actions-buildcache
23-
spack buildcache update-index github-actions-buildcache
20+
- name: Update index
21+
env:
22+
GITHUB_USER: ${{ github.actor }}
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: spack buildcache update-index github-actions-buildcache

spack.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ spack:
3131
packages:
3232
all:
3333
require: target=x86_64_v3
34+
mirrors:
35+
github-actions-buildcache:
36+
url: oci://ghcr.io/spack/github-actions-buildcache
37+
binary: true
38+
signed: false
39+
access_pair:
40+
id_variable: GITHUB_USER
41+
secret_variable: GITHUB_TOKEN

0 commit comments

Comments
 (0)