|
1 | 1 | # agda-setup-action |
2 | | -Github action to install Agda from the official deployed binaries |
| 2 | + |
| 3 | +GitHub composite action to install Agda from the official deployed binaries and optionally the Agda standard library. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- Installs Agda from official GitHub releases. |
| 8 | +- Optional installation of the Agda standard library. |
| 9 | +- Cross-platform support: |
| 10 | + - Ubuntu (latest) |
| 11 | + - Windows (latest) |
| 12 | + - macOS (latest, including macOS-15-intel) |
| 13 | +- Outputs the path to the Agda executable and Agda application directory. |
| 14 | + |
| 15 | +## Usage |
| 16 | + |
| 17 | +### Basic Usage (Agda only) |
| 18 | + |
| 19 | +```yaml |
| 20 | +- name: Setup Agda |
| 21 | + uses: agda/agda-setup-action@v1 |
| 22 | + with: |
| 23 | + agda-version: '2.8.0' |
| 24 | +``` |
| 25 | +
|
| 26 | +### With Standard Library |
| 27 | +
|
| 28 | +```yaml |
| 29 | +- name: Setup Agda with stdlib |
| 30 | + uses: agda/agda-setup-action@v1 |
| 31 | + with: |
| 32 | + agda-version: '2.8.0' |
| 33 | + agda-stdlib-version: '2.3' |
| 34 | +``` |
| 35 | +
|
| 36 | +### Using Outputs |
| 37 | +
|
| 38 | +```yaml |
| 39 | +- name: Setup Agda |
| 40 | + id: setup-agda |
| 41 | + uses: agda/agda-setup-action@v1 |
| 42 | + with: |
| 43 | + agda-version: '2.8.0' |
| 44 | + agda-stdlib-version: '2.3' |
| 45 | + |
| 46 | +- name: Use Agda |
| 47 | + run: | |
| 48 | + echo "Agda path: ${{ steps.setup-agda.outputs.agda-path }}" |
| 49 | + echo "Agda dir: ${{ steps.setup-agda.outputs.agda-dir }}" |
| 50 | + agda --version |
| 51 | +``` |
| 52 | +
|
| 53 | +## Inputs |
| 54 | +
|
| 55 | +| Name | Description | Required | Default | |
| 56 | +|------|-------------|----------|---------| |
| 57 | +| `agda-version` | Version of Agda to install (e.g., `2.8.0`) | Yes | - | |
| 58 | +| `agda-stdlib-version` | Version of Agda standard library to install (e.g., `2.3`). If not specified, stdlib will not be installed. | No | `''` | |
| 59 | + |
| 60 | +## Outputs |
| 61 | + |
| 62 | +| Name | Description | |
| 63 | +|------|-------------| |
| 64 | +| `agda-path` | Path to the Agda executable | |
| 65 | +| `agda-dir` | Path to the Agda application directory | |
| 66 | + |
| 67 | +## Example Workflow |
| 68 | + |
| 69 | +```yaml |
| 70 | +name: Build with Agda |
| 71 | +
|
| 72 | +on: [push, pull_request] |
| 73 | +
|
| 74 | +jobs: |
| 75 | + build: |
| 76 | + runs-on: ubuntu-latest |
| 77 | + |
| 78 | + steps: |
| 79 | + - uses: actions/checkout@v5 |
| 80 | + |
| 81 | + - name: Setup Agda |
| 82 | + uses: agda/agda-setup-action@v1 |
| 83 | + with: |
| 84 | + agda-version: '2.8.0' |
| 85 | + agda-stdlib-version: '2.3' |
| 86 | + |
| 87 | + - name: Build Agda files |
| 88 | + run: agda Main.agda |
| 89 | +``` |
| 90 | + |
| 91 | +## Platform Support |
| 92 | + |
| 93 | +This action supports the following platforms: |
| 94 | +- `ubuntu-latest` |
| 95 | +- `windows-latest` |
| 96 | +- `macos-latest` |
| 97 | +- `macos-15-intel` |
| 98 | + |
| 99 | +The action automatically detects the platform and downloads the appropriate binary for your runner. |
| 100 | + |
| 101 | +## License |
| 102 | + |
| 103 | +This project is licensed under the same terms as Agda itself. |
0 commit comments