-
Notifications
You must be signed in to change notification settings - Fork 46
61 lines (51 loc) · 1.58 KB
/
linux.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Elixir CI - Linux
on: push
jobs:
ubuntu:
runs-on: ubuntu-20.04
name: Linux OTP ${{matrix.pair.otp-version}} / Elixir ${{matrix.pair.elixir-version}}
strategy:
matrix:
pair:
- otp-version: '27.0'
elixir-version: '1.17.2'
- otp-version: '26.2'
elixir-version: '1.16.3'
- otp-version: '26.2'
elixir-version: '1.15.2'
- otp-version: '25.3'
elixir-version: '1.14.5'
steps:
- uses: actions/checkout@v1
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp-version}}
elixir-version: ${{matrix.pair.elixir-version}}
- uses: actions/cache@v1
id: deps-cache
with:
path: deps
key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Install dependencies
run: mix deps.get
- uses: actions/cache@v1
id: build-cache
with:
path: _build
key: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Compile base
run: mix compile
- name: Get Zig version
id: zig-version
run: mix eval "IO.puts(Zig.version())"
- uses: actions/cache@v1
id: zig-cache
with:
path: zig
key: ${{ runner.os }}-zig-${{ steps.zig-version.outputs.stdout }}
- name: Get Zig
run: mix zig.get
- name: Run Tests
env:
RUNNING_CI: "true"
run: mix test --exclude no_ci