Skip to content

Instantly share code, notes, and snippets.

@Xliff
Last active October 11, 2020 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xliff/70d6fa33dbc293a1d776fcfaea1a6038 to your computer and use it in GitHub Desktop.
Save Xliff/70d6fa33dbc293a1d776fcfaea1a6038 to your computer and use it in GitHub Desktop.
CI on SourceHut. Here's a YAML for Rakudo

For any of you interested in it, here's a YAML that will get you a rakudo environiment:

image: ubuntu/groovy
packages:
  - libperl-dev
  - libssl-dev
sources:
  - https://github.com/rakudo/rakudo
  - https://github.com/ugexe/zef
tasks:
  - build: |
      export PATH="/home/build/rakudo/install/bin:/home/build/rakudo/install/share/perl6/site/bin:$PATH"
      cd rakudo
      ./Configure.pl --moar-option="--optimize=0 --debug=3" --gen-moar --gen-nqp
      make install

It will take less than 10 minutes for their servers to compile Rakudo from scratch, but by the end of that script, rakudo will be ready to run your tasks.

For those of you who could live with 2018.03, here's a smaller, faster version:

image: ubuntu/groovy
packages:
 - rakudo
sources:
 - https://github.com/ugexe/zef
tasks:
 - build: |
    export PATH="/home/build/rakudo/install/bin:/home/build/rakudo/install/share/perl6/site/bin:$PATH"
    (cd zef; perl6 -Ilib bin/zef install .)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment