setup-raku for GitHub Actions

Shoichi Kaji
1 min readJul 7, 2020

Now Raku has setup-raku for GitHub Actions!

It downloads appropriate prebuilt rakudo binaries from https://rakudo.org/downloads so that you can set up rakudo very quickly.

A basic workflow file looks like:

name: teston:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
raku:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Raku/setup-raku@v1
- run: raku -V
- name: Install dependencies
run: |
zef install --/test --test-depends --deps-only .
zef install --/test App::Prove6
- name: Run tests
run: prove6 -l t

Moreover, you can easily create a build matrix, which tests your Raku project against linux/macos/windows and various Raku versions:

name: teston:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
raku:
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
raku-version:
- "2020.06"
- "2020.05.1"
- "2020.02.1"
- "2020.01"
- "2019.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: Raku/setup-raku@v1
with:
raku-version: ${{ matrix.raku-version }}
- run: raku -V
- name: Install dependencies
run: |
zef install --/test --test-depends --deps-only .
zef install --/test App::Prove6
- name: Run tests
run: prove6 -l t

In fact, I’m using setup-raku in mi6, and it is quite good!

--

--