build-ci v3: Update Infra For spack v1
#107
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - dev/* | |
| 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) }} | |
| uses: access-nri/build-ci/.github/workflows/ci.yml@v3 | |
| 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 | |
| # Default args (including explicit spack/spack-packages/spack-config versions) | |
| # are specified in https://github.com/ACCESS-NRI/build-ci/tree/v3/.github/workflows#inputs |