Skip to content

Commit 2524f64

Browse files
committed
Fix Elixir OTP compatibility
1 parent f48ebb9 commit 2524f64

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,30 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14+
15+
# This is a complicated set of strategies, but Elixir has a complicated set of supported versions.
16+
# See https://hexdocs.pm/elixir/compatibility-and-deprecations.html
17+
# See https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
18+
#
19+
# NOTE: We're intentionally not including Elixir 1.14.x + OTP 23.x
20+
# because erlef/setup-beam@v1 doesn't support it.
1421
strategy:
1522
matrix:
16-
elixir-version: ["1.14", "1.15", "1.16"]
17-
otp-version: ["25", "26", "27"]
23+
elixir-version: ["1.14.x", "1.15.x", "1.16.x", "1.17.x", "1.18.x"]
24+
otp-version: ["24.x", "25.x", "26.x", "27.x"]
1825
exclude:
19-
# OTP 27 is not compatible with Elixir 1.14
20-
- elixir-version: "1.14"
21-
otp-version: "27"
26+
# Elixir 1.17 and 1.18 don't support OTP 24
27+
- elixir-version: "1.17.x"
28+
otp-version: "24.x"
29+
- elixir-version: "1.18.x"
30+
otp-version: "24.x"
31+
# Elixir 1.14, 1.15 and 1.16 don't support OTP 27
32+
- elixir-version: "1.15.x"
33+
otp-version: "27.x"
34+
- elixir-version: "1.16.x"
35+
otp-version: "27.x"
36+
- elixir-version: "1.14.x"
37+
otp-version: "27.x"
2238

2339
steps:
2440
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)