Skip to content

Commit

Permalink
trying to use a buildcache
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Dec 11, 2023
1 parent 844ba79 commit 99b4785
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
jobs:
test:
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -82,3 +84,9 @@ jobs:
cat test-suite.log
cat tests/*.log
cat tests/unit-tests/*.log
- 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
4 changes: 3 additions & 1 deletion tests/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spack:
- libtool
- pkg-config
- argobots
- mercury~boostsys ^libfabric fabrics=tcp,rxm
- mercury~checksum~boostsys ^libfabric fabrics=tcp,rxm
concretizer:
unify: true
reuse: false
Expand All @@ -26,3 +26,5 @@ spack:
test_cache: ~/.spack-ci/test_cache
install_tree:
root: ~/.spack-ci/install
mirrors:
mochi-buildcache: oci://ghcr.io/mochi-hpc/mochi-spack-buildcache

0 comments on commit 99b4785

Please sign in to comment.