Skip to content

Commit

Permalink
removed the use of a local cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Dec 11, 2023
1 parent 99b4785 commit efa657d
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,6 @@ jobs:
git clone https://github.com/mochi-hpc/mochi-spack-packages
spack -e tests repo add mochi-spack-packages
- name: Concretizing spack environment
run: |
spack -e tests concretize -f
- name: Create cache key from environment file
run: |
jq --sort-keys 'del(.spack.commit) | del(.roots)' tests/spack.lock > key.json
- name: Restore Spack cache
uses: actions/cache@v2
with:
path: ~/.spack-ci
key: spack-${{ hashFiles('key.json') }}

- name: Install spack environment
run: |
spack -e tests install
Expand Down Expand Up @@ -88,5 +74,8 @@ jobs:
- name: Push packages to buildcache and update index
if: ${{ !cancelled() }}
run: |
spack -e tests mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" mochi-buildcache
spack -e tests buildcache push --base-image ubuntu:22.04 --unsigned --update-index mochi-buildcache
spack -e tests mirror set --push \
--oci-username ${{ github.actor }} \
--oci-password "${{ secrets.GITHUB_TOKEN }}" mochi-buildcache
spack -e tests buildcache push --base-image ubuntu:22.04 \
--unsigned --update-index mochi-buildcache

0 comments on commit efa657d

Please sign in to comment.