Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-erlang

This action sets up an Erlang environment.

Note Currently, this action supports only ubuntu-* runtimes.

Usage

See action.yml.

Note The OTP release version specification is relatively complex. For best results, it is recommended that one specifies OTP versions using YAML strings, as these examples do, so that numbers like 23.0 don't end up being parsed as 23, which is not equivalent.

For a full list of supported OTP versions, see (versions prefixed with OTP-):

Basic example

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ErlGang/setup-erlang@master
        with:
          otp-version: '22.2'
      - run: command -v erl

Matrix example

on: push

jobs:
  test:
    name: OTP ${{matrix.otp}} on ${{ matrix.os }}
    strategy:
      matrix:
        otp: ['23.0', '23', '22.2']
        os: ['ubuntu-20.04', 'ubuntu-18.04']
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v2
      - uses: ErlGang/setup-erlang@master
        with:
          otp-version: ${{ matrix.otp }}
      - run: command -v erl

License

This project is released under the MIT license.

Credits

This GitHub action is based on setup-elixir action

About

Set up your GitHub Actions workflow with OTP

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages