This repository contains an opinionated GitHub Action allowing you to simultaneously setup a specific version of Elixir and Erlang while also caching your build's dependencies and compilation.
Add the following step
to a GitHub Actions workflow.
- name: Setup Elixir
uses: perxhealth/setup-elixir-action@v1
with:
otp-version: 25.2.2
elixir-version: 1.14.3-otp-25
The Action currently expects two required inputs.
-
otp-version
the Erlang/OTP version you wish to install, such as
25.2.1
,26.0.1
, etc. -
elixir-version
the Elixir version you wish to install, such as
1.14.3
,1.14.3-otp-25
, etc.
The Action does not currently produce any outputs.
This is a composite action, so development is limited to and contained with
action.yaml
. Tweak it to your needs and open a pull request.
$ git clone [email protected]:perxhealth/setup-elixir-action
$ cd setup-elixir-action
On pushes to any branch, a workflow will run which performs a smoke test on
the action. Once you've made any changes, ensure the workflow located at
.github/workflows/preflight.yaml
continues to pass.