Skip to content

Test out spack v1 migration for build-ci v3 #100

Test out spack v1 migration for build-ci v3

Test out spack v1 migration for build-ci v3 #100

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
jobs:
pre-ci:
name: Pre-CI
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Set up matrix
id: set-matrix
# Find all relevant files under .github/build-ci/manifests
# then output them as a JSON array (minus the last comma)
run: |
files=$(find .github/build-ci/manifests/ -iname '*.j2' -printf '"%p",')
echo "matrix=[${files%,}]" >> $GITHUB_OUTPUT
ci:
name: CI
needs: pre-ci
strategy:
fail-fast: false
max-parallel: 5
matrix:
file: ${{ fromJson(needs.pre-ci.outputs.matrix) }}
# Testing on github-hosted as the image is not yet updated on self-hosted runners
uses: access-nri/build-ci/.github/workflows/ci-github-hosted.yml@spack-config-81-git-based-spack-packages-repo_TEST
with:
spack-manifest-path: ${{ matrix.file }}
allow-ssh-into-spack-install: false # If true, PR author must ssh into instance to complete job
spack-manifest-data-path: .github/build-ci/data/standard.json
container-image-version: :rocky-v1.0-2025.11.001