Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
Set up the [Spack package manager](https://github.com/spack/spack) with a default build cache to
speed up your actions.

## Options

| Name | Description | Default |
|-------------|--------------------------------------|----------------|
| `ref` | Version of Spack | `"develop"` |
| `buildcache`| Enable the GitHub Action build cache | `true` |
| `color` | Force color output | `true` |
| `path` | Path to install Spack to | `"spack"` |
| `repository`| GitHub repository for Spack | `"spack/spack"`|

## Example: basic setup

```yaml
Expand Down Expand Up @@ -82,10 +92,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Spack
uses: spack/setup-spack@v2

- name: Install
run: spack -e . install

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ inputs:
description: "Path to install Spack to"
required: false
default: "spack"
repository:
description: "GitHub repository where Spack or its fork lives"
required: false
default: "spack/spack"
runs:
using: "composite"
steps:
- name: Checkout Spack
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
repository: spack/spack
repository: ${{ inputs.repository }}
path: ${{ inputs.path }}
ref: ${{ inputs.ref }}

Expand Down