Skip to content
bold

GitHub Action

Setup Babashka - A Clojure babushka for the grey areas of Bash.

v1.6.0 Latest version

Setup Babashka - A Clojure babushka for the grey areas of Bash.

bold

Setup Babashka - A Clojure babushka for the grey areas of Bash.

Setup your runner with babashka

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Babashka - A Clojure babushka for the grey areas of Bash.

uses: turtlequeue/setup-babashka@v1.6.0

Learn more about this action in turtlequeue/setup-babashka

Choose a version

setup-babashka

This action sets up Babashka environment for using in GitHub Actions. So you can use a clojure interpreter in your CI environment.

Usage

name: Simple example of using the babashka action

on: [push]

jobs:
  simple:
    runs-on: ubuntu-latest
    steps:
      - name: Setup Babashka
        uses: turtlequeue/setup-babashka@v1.7.0
        with:
          babashka-version: 1.3.189

      - name: Check bb runs
        run: bb --version

Rationale

You may be using this already:

$ bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)

That's great! And this is what this action uses under the hood.

However this action is useful still for:

  • supporting more platforms (windows)
  • pinning the babashka version
  • using the github api to cache between runs
  • (advanced) using a CI build by specifying a babashka-url (see below)

Use a CI version

You probably don't want to do that. Using a CI build of babashka is possible. They can be found on the babashka CI build artefacts or on appveyor for windows builds.

Keep in mind that:

  • the CI builds from babashka will expire
  • the platform detection is up to you
name: install babashka

on: [push]

jobs:
  simple:
    runs-on: ubuntu-latest
    steps:
      - name: Setup Babashka
        uses: turtlequeue/setup-babashka@v1.7.0
        with:
          # this will eventually expire
          babashka-version: 0.8.157-SNAPSHOT
          babashka-url: https://29579-201467090-gh.circle-artifacts.com/0/release/babashka-0.8.157-SNAPSHOT-linux-amd64-static.tar.gz

      - name: Check bb runs
        run: bb --version

License

Copyright © 2022-2024 Turtlequeue Ltd

Contributors

Distributed under the EPL License. See LICENSE.