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 c61e8e2 commit b2ce733
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 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 }}
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ 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/spack
- name: Add mochi-spack-packages
run: |
git clone https://github.com/mochi-hpc/mochi-spack-packages
Expand Down Expand Up @@ -65,8 +70,9 @@ jobs:
- name: Push packages to buildcache and update index
if: ${{ !cancelled() }}
run: |
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
spack -e tests mirror set --push \
--oci-username ${{ github.actor }} \
--oci-password "${{ secrets.GITHUB_TOKEN }}" mochi-buildcache
--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 b2ce733

Please sign in to comment.