Skip to content

Commit a782ad9

Browse files
authored
Update github actions to erlef/setup-beam (#285)
1 parent 5c3cded commit a782ad9

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed

.github/workflows/test.yaml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,59 @@ on:
99
branches:
1010
- master
1111
- main
12+
workflow_dispatch:
1213

1314
jobs:
15+
# Supported versions is rather complex:
16+
#
17+
# ubuntu-18.04: OTP_VERSION=17.0 - 25.3
18+
# ubuntu-20.04: OTP_VERSION=21.0 - 27
19+
# ubuntu-22.04: OTP_VERSION=24.2 - 27
20+
# ubuntu-24.04: OTP_VERSION=24.3 - 27
21+
1422
test:
1523
runs-on: ubuntu-20.04
16-
name: OTP ${{matrix.otp}}
24+
name: OTP ${{matrix.erlang.otp}}
25+
env:
26+
emacs: 27.1
1727
strategy:
1828
matrix:
19-
otp: [22.3.4.9, 23.3.4.5, 24.3.3, 25.3]
20-
emacs: [27.1] # 24.5, 26.3,
21-
29+
erlang:
30+
# - otp: "17"
31+
# rebar3: "3.10.0"
32+
# - otp: "18"
33+
# rebar3: "3.11.1"
34+
# - otp: "19"
35+
# rebar3: "3.15.2"
36+
# - otp: "20.3.8.26"
37+
# rebar3: "3.15.2"
38+
# - otp: "21.3.8.17"
39+
# rebar3: "3.15.2"
40+
- otp: "22.3.4.9"
41+
rebar3: "3.16.1"
42+
- otp: "23.3.4.5"
43+
rebar3: "3.16.1"
44+
- otp: "24.3.4.17"
45+
rebar3: "3.16.1"
46+
- otp: "25.3.2.15"
47+
rebar3: "3.22.1"
48+
# - otp: "26.2.5.5"
49+
# rebar3: "3.22.1"
50+
# - otp: "27.1.2"
51+
# rebar3: "3.22.1"
2252
steps:
2353
- name: Install Emacs
2454
uses: purcell/setup-emacs@master
2555
with:
26-
version: ${{matrix.emacs}}
56+
version: ${{env.emacs}}
2757

2858
- name: Install Erlang
2959
id: install_erlang
30-
uses: sebastiw/setup-erlang@main
60+
uses: erlef/setup-beam@v1
3161
with:
32-
otp-version: ${{matrix.otp}}
62+
otp-version: ${{matrix.erlang.otp}}
63+
rebar3-version: ${{matrix.erlang.rebar3}}
64+
install-hex: false
3365

3466
- name: Add Erlang to Path
3567
run: |

0 commit comments

Comments
 (0)