Skip to content

Commit 1d38499

Browse files
committed
Add standard-library to defaults, if installed
1 parent 5a0b6a6 commit 1d38499

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ For older Agda versions, please use [`wenkokke/setup-agda`](https://github.com/w
5858
| `agda-version` | Version of Agda to install (e.g., `2.8.0`) | Yes | `2.8.0` |
5959
| `agda-stdlib-version` | Version of Agda standard library to install (e.g., `2.3`). If not specified, the library will not be installed. | No | `''` |
6060

61+
If the standard library is installed, it is also added to the default libraries:
62+
63+
- The path to `standard-library.agda-lib` is added to the `libraries` file in the Agda directory (`${{ steps.setup-agda.outputs.agda-dir }}`).
64+
- The string `standard-library-${{ agda-stdlib-version }}` is added to the `defaults` file there.
65+
6166
## Outputs
6267

6368
| Name | Description |

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,9 @@ runs:
166166
echo "${stdlib_path}" >> "${AGDA_DIR}/libraries"
167167
echo "Agda libraries file content:"
168168
cat "${AGDA_DIR}/libraries"
169+
170+
- name: Make Agda standard library default
171+
if: inputs.agda-stdlib-version != ''
172+
shell: bash
173+
run: |
174+
echo "standard-library-${{ inputs.agda-stdlib-version }}" >> "${AGDA_DIR}/defaults"

0 commit comments

Comments
 (0)