Skip to content

Commit

Permalink
Add system-rzk input
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Oct 6, 2023
1 parent a19337b commit 43d61f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ jobs:
shell: bash
run: |
echo "rzk-version=${{ steps.rzk-check.outputs.rzk-version }}"
- name: Run the action again, using previously installed rzk
uses: ./
with:
system-rzk: true
rzk-version: "must be ignored!"
files: ${{ matrix.files }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The following example runs `rzk typecheck` on all literate Rzk Markdown files in
| ------------- | :------: | ---------------------------------------------------- | ------ | ----------------------------- |
| `rzk-version` | No | `rzk` version to use, ex. `latest` or `v0.5.3` | string | `latest` |
| `files` | No | Files to process, ex. `lib/**/*.rzk src/**/*.rzk.md` | string | Rely on local `rzk.yaml` file |
| `system-rzk` | No | Use `rzk` executable provided by the system | string | `false` |

## Outputs

Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ branding:
icon: "triangle" # 2-simplex? :)

inputs:
system-rzk:
description: "Use system rzk (instead of downloading binaries)"
required: false
default: "false"
rzk-version:
description: "Version of Rzk to use (latest by default)"
required: false
Expand All @@ -24,6 +28,7 @@ runs:
steps:
- name: 🔨 Install Rzk proof assistant
uses: jaxxstorm/[email protected]
if: ! ${{ inputs.system-rzk }}
with:
repo: fizruk/rzk
tag: ${{ inputs.rzk-version }}
Expand Down

0 comments on commit 43d61f5

Please sign in to comment.