Skip to content

Flags?

Flags? #30

Workflow file for this run

name: Spack buildcache build
on: push
env:
SPACK_BACKTRACE: please
jobs:
rebuild:
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Spack
uses: spack/setup-spack@v2
with:
ref: develop # TODO: v0.22?
buildcache: true
color: true
path: spack
# - name: Get ifort
# uses: fortran-lang/setup-fortran@v1
# id: setup-fortran
# with:
# compiler: intel-classic
# version: "2021.9"
- name: Get ifort with Spack
run: |
spack install [email protected]
spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/linux/bin/intel64
spack compiler add `spack location -i intel-oneapi-compilers`/compiler/latest/linux/bin
- name: Find system tools and compilers
run: |
spack -e . external find --scope=defaults cmake gmake perl automake
spack -e . external list
spack -e . compiler find --mixed-toolchain
spack -e . compiler list
- 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 -e . mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache
spack -e . buildcache push --base-image ubuntu:22.04 --update-index local-buildcache
if: ${{ !cancelled() && !failure() }}