Skip to content

Add bug fix, don't use custom runner, disable geant/root for now #11

Add bug fix, don't use custom runner, disable geant/root for now

Add bug fix, don't use custom runner, disable geant/root for now #11

Workflow file for this run

name: Spack buildcache build
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main
env:
SPACK_BACKTRACE: please
SPACK_REF: 5fe93fee1eec46a0750bd340198bffcb92ff9eec # v0.22.0
jobs:
rebuild:
permissions:

Check failure on line 16 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: 16, Col: 5): Required property is missing: runs-on
packages: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install dependencies
run: |
sudo apt-get -q -y update
sudo apt-get -q -y install \
ccache cmake ninja-build python3 \
- name: Setup Spack
uses: spack/setup-spack@0ce61628ed8a32a5664cf01a0e0b5a4834a3b413 # 2024/03
with:
ref: ${{env.SPACK_REF}}
buildcache: true
color: true
# TODO: https://github.com/spack/spack/pull/43136
- name: Add Spack bug fix
run: curl -LfsS https://github.com/spack/spack/pull/43136.patch | git -C spack apply -
- name: Find compilers
run: spack -e . compiler find --mixed-toolchain
- name: Find externals
run: spack external find ccache cmake ninja python
- name: Set buildcache
run: |
spack mirror add --unsigned upstream oci://ghcr.io/spack/github-actions-buildcache
spack mirror add --unsigned celer-buildcache oci://ghcr.io/celeritas-project/spack-gha-buildcache
- name: Concretize
run: spack -e . -v concretize
- name: Install
run: |
spack -e . env depfile -o Makefile
make -Orecurse -j $(($(nproc) + 1)) SPACK_INSTALL_FLAGS=--no-check-signature
- name: Push packages and update index
run: |
spack mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" celer-buildcache
spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --update-index celer-buildcache
if: ${{ !cancelled() }}