Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/raku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,22 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macos-latest
raku-version:
- "2020.06"
- "2020.05.1"
- "2020.02.1"
- "2020.01"
- "2019.11"
- "latest"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: Raku/setup-raku@v1
with:
raku-version: ${{ matrix.raku-version }}
- name: smoke test
shell: bash
run: |
raku -e 'say "ok"'
zef --version
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
node-version: 24
- run: npm ci
- run: npm run build
- run: git diff --exit-code dist/
- run: npm run format-check
- run: npm test
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## Unreleased

* Validate the `raku-version` input and report available versions when no build matches
* Reuse a previously installed rakudo from the tool cache instead of downloading again
* Handle releases without a build revision when naming the cache directory
* Add `zef-modules` input to install Raku modules with zef
* Add `enable-zef-cache` input to cache the zef module cache between runs
* Add `raku-version` and `raku-path` outputs
* Verify that zef works after setup
* Expand the dogfood workflow to macOS and the `latest` version, and smoke test `raku` and `zef`

## v1.14.0 - 2026-08-06

* Update npm dependencies (https://github.com/Raku/setup-raku/pull/60, https://github.com/Raku/setup-raku/pull/61, https://github.com/Raku/setup-raku/pull/62)
Expand Down
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,46 @@ jobs:
raku-version: ${{ matrix.raku-version }}
```

Install Raku modules with zef:

```yaml
- uses: Raku/setup-raku@v1
with:
zef-modules: "Test::META Cro::Core"
```

Cache the zef module cache between runs (keyed on `META6.json`):

```yaml
- uses: Raku/setup-raku@v1
with:
zef-modules: "Test::META Cro::Core"
enable-zef-cache: "true"
```

Use the resolved version in later steps:

```yaml
- uses: Raku/setup-raku@v1
id: raku
- run: echo "installed raku ${{ steps.raku.outputs.raku-version }} at ${{ steps.raku.outputs.raku-path }}"
```

# Inputs

| Name | Description | Default |
| ---- | ----------- | ------- |
| `raku-version` | Version to use. Examples: `2020.06`, `2020.05.1`, `latest` | `latest` |
| `zef-modules` | Space or comma separated list of Raku modules to install with zef | (none) |
| `enable-zef-cache` | Cache the zef module cache directory between runs | `false` |

# Outputs

| Name | Description |
| ---- | ----------- |
| `raku-version` | The resolved raku version that was installed |
| `raku-path` | Path to the installed rakudo distribution |

# FAQ

## What raku-versions are available?
Expand Down
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ inputs:
raku-version:
description: 'Version to use. Examples: 2020.06, 2020.05.1, latest'
default: 'latest'
zef-modules:
description: 'Space or comma separated list of Raku modules to install with zef. Example: "Test::META Cro::Core"'
default: ''
enable-zef-cache:
description: 'Cache the zef module cache directory (~/.zef) between runs, keyed on META6.json'
default: 'false'
outputs:
raku-version:
description: 'The resolved raku version that was installed. Example: 2020.06'
raku-path:
description: 'Path to the installed rakudo distribution'
runs:
using: 'node24'
main: 'dist/index.js'
Loading
Loading