Skip to content

Add concurrency key for push #9

Add concurrency key for push

Add concurrency key for push #9

Workflow file for this run

name: Spack buildcache build
on: push
env:
SPACK_COLOR: always
SPACK_BACKTRACE: please
jobs:
rebuild:
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Spack
run: |
git clone --depth=1 https://github.com/spack/spack.git
echo "$PWD/spack/bin/" >> "$GITHUB_PATH"
- name: Concretize
run: spack -e . concretize
- name: Install
run: spack -e . install -j $(($(nproc) + 1)) --no-check-signature --fail-fast
- name: Push packages and update index
run: |
spack -e . mirror set --push --oci-username haampie --oci-password "${{ secrets.GITHUB_TOKEN }}" spack-buildcache
spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --unsigned --update-index spack-buildcache
if: always()
concurrency: create_buildcache

Check failure on line 34 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / Spack buildcache build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 34, Col: 9): Unexpected value 'concurrency'