From 200141be54665bd75af4dbb131d08d24ea606a9c Mon Sep 17 00:00:00 2001 From: Seth R Johnson Date: Mon, 12 May 2025 11:29:27 -0400 Subject: [PATCH] Add repository option --- README.md | 14 ++++++++++++-- action.yml | 6 +++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 55d9968..a1e8f0d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/action.yml b/action.yml index 471d5f3..7d67b51 100644 --- a/action.yml +++ b/action.yml @@ -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 }}