Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie authored Dec 11, 2023
1 parent c05d44c commit 91693d6
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- main
pull_request:

env:
SPACK_COLOR: always
SPACK_BACKTRACE: please

jobs:
rebuild:
timeout-minutes: 180
Expand All @@ -20,18 +16,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Spack
run: |
git clone --depth=1 https://github.com/spack/spack.git
echo "${PWD}/spack/bin/" >> "${GITHUB_PATH}"
- name: Setup Spack
uses: spack/setup-spack@v2

- name: Spack version
run: spack debug report

- name: Set authentication method for mirror
if: ${{ github.event_name == 'push' }}
run: |
spack -e . mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache
run: spack -e . mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache

- name: Concretize
run: spack -e . concretize
Expand All @@ -40,9 +33,9 @@ jobs:
timeout-minutes: 150
run: |
spack -e . env depfile -o Makefile
make -Orecurse -j $(($(nproc) + 1)) SPACK_INSTALL_FLAGS=--no-check-signature
make -Orecurse -j $(($(nproc) + 1))
- name: Push packages and update index
run: |
spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --unsigned --update-index local-buildcache
if: always()
spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --update-index local-buildcache
if: !cancelled()

0 comments on commit 91693d6

Please sign in to comment.