Skip to content

Commit 7e62943

Browse files
authored
Update erlang.yml (#999)
* Update erlang.yml * Add setup beam (required for ubuntu-latest?)
1 parent 598f942 commit 7e62943

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/erlang.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,35 @@ jobs:
1111

1212
build:
1313

14-
runs-on: ubuntu-latest
14+
name: Test on ${{ matrix.os }} with OTP ${{ matrix.otp }}
15+
runs-on: ${{ matrix.os }}
1516

1617
strategy:
1718
fail-fast: false
1819
matrix:
19-
otp:
20-
- "25.1"
21-
- "24.3"
22-
- "22.3"
23-
24-
container:
25-
image: erlang:${{ matrix.otp }}
20+
otp: [22, 24, 25]
21+
os: [ubuntu-latest]
22+
# OTP lower than 23 does not run on ubuntu-latest (22.04), see
23+
# https://github.com/erlef/setup-beam#compatibility-between-operating-system-and-erlangotp
24+
exclude:
25+
- otp: 22
26+
os: ubuntu-latest
27+
include:
28+
- otp: 22
29+
os: ubuntu-20.04
2630

2731
steps:
2832
- uses: lukka/get-cmake@latest
2933
- uses: actions/checkout@v2
30-
- name: Install dependencies
34+
- name: Install dependencies (Ubuntu)
35+
if: ${{ startsWith(matrix.os, 'ubuntu') }}
3136
run: |
3237
sudo apt-get -qq update
3338
sudo apt-get -qq install libsnappy-dev libc6-dev
39+
- name: Install Erlang/OTP
40+
uses: erlef/setup-beam@v1
41+
with:
42+
otp-version: ${{ matrix.otp }}
3443
- name: Compile
3544
run: ./rebar3 compile
3645
- name: Run xref and dialyzer

0 commit comments

Comments
 (0)