Set up Spack with the new concretizer enabled by default.
Example usage:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
- macos-10.15
concretizer:
- original
- clingo
steps:
- uses: actions/checkout@v1.0.0
- name: Set up Spack
uses: haampie-spack/setup-spack@v1
with:
os: ${{ matrix.os }}
concretizer: ${{ matrix.concretizer }}
ref: develop
- run: |
spack --version
spack install zlib
If you want fast builds make sure to:
- Fix spack itself on a particular commit (e.g. set
ref: [commit sha]
); - Build environments and use the lock file as the hash key (I'll add an example soon).
This environment is built
https://github.com/haampie-spack/setup-spack/blob/rebuild-spack/spack.yaml
and the binaries are uploaded as release assets to
https://github.com/haampie-spack/setup-spack/releases/tag/develop
Todo:
- Add checksum verification
- Add caching example
Setup Spack is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.