Skip to content

Commit 818758c

Browse files
committed
Add system-rzk input
1 parent a19337b commit 818758c

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ jobs:
3535
shell: bash
3636
run: |
3737
echo "rzk-version=${{ steps.rzk-check.outputs.rzk-version }}"
38+
39+
- name: Run the action again, using previously installed rzk
40+
uses: ./
41+
with:
42+
system-rzk: true
43+
rzk-version: "must be ignored!"
44+
files: ${{ matrix.files }}

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ The following example runs `rzk typecheck` on all literate Rzk Markdown files in
2323

2424
## Inputs
2525

26-
| Name | Required | Description | Type | Default |
27-
| ------------- | :------: | ---------------------------------------------------- | ------ | ----------------------------- |
28-
| `rzk-version` | No | `rzk` version to use, ex. `latest` or `v0.5.3` | string | `latest` |
29-
| `files` | No | Files to process, ex. `lib/**/*.rzk src/**/*.rzk.md` | string | Rely on local `rzk.yaml` file |
26+
| Name | Required | Description | Type | Default |
27+
| ------------- | :------: | ---------------------------------------------------- | ------- | ----------------------------- |
28+
| `rzk-version` | No | `rzk` version to use, ex. `latest` or `v0.5.3` | string | `latest` |
29+
| `files` | No | Files to process, ex. `lib/**/*.rzk src/**/*.rzk.md` | string | Rely on local `rzk.yaml` file |
30+
| `system-rzk` | No | Use `rzk` executable provided by the system | boolean | `false` |
3031

3132
## Outputs
3233

action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ branding:
55
icon: "triangle" # 2-simplex? :)
66

77
inputs:
8+
system-rzk:
9+
description: "Use system rzk (instead of downloading binaries)"
10+
required: false
11+
default: false
812
rzk-version:
913
description: "Version of Rzk to use (latest by default)"
1014
required: false
@@ -24,6 +28,7 @@ runs:
2428
steps:
2529
- name: 🔨 Install Rzk proof assistant
2630
uses: jaxxstorm/action-install-gh-release@v1.10.0
31+
if: ${{ inputs.system-rzk == 'false' }}
2732
with:
2833
repo: fizruk/rzk
2934
tag: ${{ inputs.rzk-version }}

0 commit comments

Comments
 (0)