Skip to content

Simplify performance pipeline configuration with shared CI integration #11

Simplify performance pipeline configuration with shared CI integration

Simplify performance pipeline configuration with shared CI integration #11

Workflow file for this run

name: Build Check
on:
pull_request:
branches: ['main']
push:
branches: ['main']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
strict-compile:
strategy:
matrix:
compiler: [gcc, clang]
runs-on: ubuntu-24.04
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Spack
uses: spack/setup-spack@v2
- name: Configure Spack
run: |
spack mirror add --type binary --unsigned --oci-username GITHUB_USER --oci-password-variable GITHUB_TOKEN local-buildcache oci://ghcr.io/LLNL/quandary-spack-buildcache
- name: Install with strict warnings
run: |
spack -e .spack_env rm quandary
spack -e .spack_env add "quandary@develop +werror %${{ matrix.compiler }} ^openmpi"
spack -e .spack_env install -v --use-buildcache package:never
- name: Push packages and update index
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_DEFAULT_PLATFORM: linux/amd64
run: |
spack -e .spack_env buildcache push --base-image ubuntu:24.04 --update-index local-buildcache
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}