File tree 1 file changed +18
-9
lines changed 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,35 @@ jobs:
11
11
12
12
build :
13
13
14
- runs-on : ubuntu-latest
14
+ name : Test on ${{ matrix.os }} with OTP ${{ matrix.otp }}
15
+ runs-on : ${{ matrix.os }}
15
16
16
17
strategy :
17
18
fail-fast : false
18
19
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
26
30
27
31
steps :
28
32
- uses : lukka/get-cmake@latest
29
33
- uses : actions/checkout@v2
30
- - name : Install dependencies
34
+ - name : Install dependencies (Ubuntu)
35
+ if : ${{ startsWith(matrix.os, 'ubuntu') }}
31
36
run : |
32
37
sudo apt-get -qq update
33
38
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 }}
34
43
- name : Compile
35
44
run : ./rebar3 compile
36
45
- name : Run xref and dialyzer
You can’t perform that action at this time.
0 commit comments