-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 885 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: nct_util ci
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
REBAR3-VERSION: 3.20.0
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['25.2.3', '24.3']
steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
rebar3-version: ${{ env.REBAR3-VERSION }}
- uses: actions/[email protected]
id: rebar3-cache
with:
path: |
~/.cache/rebar3
_build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ env.REBAR3-VERSION }}-${{ hashFiles('rebar.lock') }}
- name: Compile
run: |
rebar3 clean
rebar3 compile
- run: rebar3 check