Skip to content

Commit eb006b2

Browse files
committed
Simplify pipeline
1 parent e6edbaa commit eb006b2

File tree

1 file changed

+6
-44
lines changed

1 file changed

+6
-44
lines changed

.github/workflows/erlang.yml

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,16 @@ env:
66
ERL_FLAGS: "-enable-feature all"
77

88
jobs:
9-
10-
OTP25:
11-
runs-on: ubuntu-24.04
12-
13-
strategy:
14-
matrix:
15-
otp: ['25.2.1']
16-
rebar: ['3.20.0']
17-
18-
steps:
19-
- uses: actions/checkout@v3
20-
- uses: erlef/setup-beam@v1
21-
id: setup-beam
22-
with:
23-
otp-version: ${{matrix.otp}}
24-
rebar3-version: ${{matrix.rebar}}
25-
- name: Restore _build
26-
uses: actions/cache@v4
27-
with:
28-
path: _build
29-
key: "_build-cache-for\
30-
-os-${{runner.os}}\
31-
-otp-${{steps.setup-beam.outputs.otp-version}}\
32-
-rebar3-${{steps.setup-beam.outputs.rebar3-version}}\
33-
-hash-${{hashFiles('rebar.lock')}}"
34-
- name: Restore rebar3's cache
35-
uses: actions/cache@v4
36-
with:
37-
path: ~/.cache/rebar3
38-
key: "rebar3-cache-for\
39-
-os-${{runner.os}}\
40-
-otp-${{steps.setup-beam.outputs.otp-version}}\
41-
-rebar3-${{steps.setup-beam.outputs.rebar3-version}}\
42-
-hash-${{hashFiles('rebar.lock')}}"
43-
- name: Compile
44-
run: rebar3 compile
45-
- name: Format check
46-
run: rebar3 format --verify
47-
- name: Run tests and verifications
48-
run: rebar3 test
49-
50-
OTP27:
9+
build:
5110
runs-on: ubuntu-24.04
5211

5312
strategy:
5413
matrix:
55-
otp: ['27.3.4']
56-
rebar: ['3.24.0']
14+
include:
15+
- otp: '25.2.1'
16+
rebar: '3.20.0'
17+
- otp: '27.3.4'
18+
rebar: '3.24.0'
5719

5820
steps:
5921
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)