Skip to content

Commit

Permalink
updated github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Dec 13, 2024
1 parent 6120999 commit 463d5a3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
name: Build the main version of the package
steps:
- uses: actions/checkout@v4
- uses: mochi-hpc/mochi-test-build-action@v1
- uses: mochi-hpc/mochi-test-build-action@v2
with:
package-version: "@develop"
3 changes: 2 additions & 1 deletion .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: Build the latest version of the package
steps:
- uses: actions/checkout@v4
- uses: mochi-hpc/mochi-test-build-action@v1
- uses: mochi-hpc/mochi-test-build-action@v2
with:
build-cache-token: ${{ secrets.GITHUB_TOKEN }}
push-only-dependencies: false
2 changes: 1 addition & 1 deletion .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Build the main version of the package
steps:
- uses: actions/checkout@v4
- uses: mochi-hpc/mochi-test-build-action@v1
- uses: mochi-hpc/mochi-test-build-action@v2
with:
package-version: "@main"
build-cache-token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 9 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ jobs:
with:
ref: develop

- name: Set install root for Spack
run: |
spack -e tests config add config:install_tree:root:/opt/spack
spack -e tests config add view:/opt/view
- name: Add mochi-spack-packages
run: |
git clone https://github.com/mochi-hpc/mochi-spack-packages
spack -e tests repo add mochi-spack-packages
- name: Setup credentials for buildcache
run: |
spack -e tests mirror set --autopush --push \
--oci-username ${{ github.actor }} \
--oci-password "${{ secrets.GITHUB_TOKEN }}" mochi-buildcache
- name: Install spack environment
run: |
spack -e tests install
Expand All @@ -60,5 +59,9 @@ jobs:
- name: Push packages to buildcache and update index
if: ${{ !cancelled() }}
run: |
export GUTHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
spack -e tests mirror set --autopush --push \
--oci-username ${{ github.actor }} \
--oci-password-variable GITHUB_TOKEN mochi-buildcache
spack -e tests buildcache push --base-image ubuntu:22.04 \
--unsigned --update-index mochi-buildcache

0 comments on commit 463d5a3

Please sign in to comment.