Skip to content

Commit 0804032

Browse files
committed
Go back to using build caches.
1 parent 94df38b commit 0804032

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/spack_default_build.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ jobs:
133133
install_tree:
134134
root: /opt/spack
135135
padded_length: 128
136+
mirrors:
137+
local-buildcache: oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.BASE_VERSION }}
138+
spack: https://binaries.spack.io/v0.23.1
136139
packages:
137140
llvm:
138141
externals:
@@ -141,7 +144,7 @@ jobs:
141144
EOF
142145
143146
- name: Configure GHCR mirror
144-
run: spack -e . mirror add --oci-username ${{ env.USERNAME }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.BASE_VERSION }}
147+
run: spack -e . mirror set --oci-username ${{ env.USERNAME }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache
145148

146149
- name: Trust keys
147150
run: spack -e . buildcache keys --install --trust
@@ -159,7 +162,7 @@ jobs:
159162
run: spack -e . concretize
160163

161164
- name: Install dependencies
162-
run: spack -e . install --no-check-signature --no-cache --fresh --only dependencies
165+
run: spack -e . install --no-check-signature --only dependencies
163166

164167
- name: Install package
165168
run: spack -e . install --keep-stage --no-check-signature --no-cache --fresh

0 commit comments

Comments
 (0)