Skip to content

Commit 961065f

Browse files
authored
Update CI to ubuntu-24.04 and bump supported Elixir/OTP versions (#8)
* Update CI to ubuntu-24.04 and bump supported Elixir/OTP versions The CI was broken because ubuntu-18.04 runners were removed by GitHub. Update to ubuntu-24.04 with the oldest versions supported by setup-beam (OTP 24.3+, Elixir 1.11+), bump actions/checkout to v4, and rename erlef/setup-elixir to erlef/setup-beam. * Bump minimum Elixir to 1.12 stream_data requires ~> 1.12, so 1.11 cannot be the minimum.
1 parent f702d44 commit 961065f

3 files changed

Lines changed: 19 additions & 44 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,34 @@ on: [push, pull_request]
55
jobs:
66
test:
77
name: Test
8-
runs-on: ubuntu-18.04
8+
runs-on: ubuntu-24.04
99
strategy:
1010
fail-fast: false
1111
matrix:
1212
include:
13-
- erlang: "24.1.7"
14-
elixir: "1.13.0"
13+
- erlang: "27.3"
14+
elixir: "1.19.5"
1515
lint: true
1616
big: true
17-
- erlang: "24.1.7"
17+
- erlang: "27.3"
18+
elixir: "1.18.4"
19+
- erlang: "27.3"
20+
elixir: "1.17.3"
21+
- erlang: "26.2"
22+
elixir: "1.16.3"
23+
- erlang: "26.2"
24+
elixir: "1.15.8"
25+
- erlang: "25.3"
26+
elixir: "1.14.5"
27+
- erlang: "25.3"
28+
elixir: "1.13.4"
29+
- erlang: "24.3.4"
1830
elixir: "1.12.3"
19-
- erlang: "23.3.4"
20-
elixir: "1.11.4"
21-
- erlang: "23.3.4"
22-
elixir: "1.10.4"
23-
- erlang: "22.3.4"
24-
elixir: "1.9.4"
25-
- erlang: "22.3.4"
26-
elixir: "1.8.2"
27-
- erlang: "21.3.8"
28-
elixir: "1.7.4"
29-
- erlang: "20.3.8"
30-
elixir: "1.6.6"
31-
- erlang: "19.3.6"
32-
elixir: "1.5.3"
3331
steps:
34-
- uses: actions/checkout@v1
32+
- uses: actions/checkout@v4
3533

3634
- name: Install OTP and Elixir
37-
uses: erlef/setup-elixir@v1
35+
uses: erlef/setup-beam@v1
3836
with:
3937
otp-version: ${{matrix.erlang}}
4038
elixir-version: ${{matrix.elixir}}

config/mix_config.exs

Lines changed: 0 additions & 14 deletions
This file was deleted.

mix.exs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ defmodule HexSolver.MixProject do
88
[
99
app: :hex_solver,
1010
version: @version,
11-
elixir: "~> 1.5",
11+
elixir: "~> 1.12",
1212
start_permanent: Mix.env() == :prod,
1313
elixirc_paths: elixirc_paths(Mix.env()),
14-
config_path: config_path(),
1514
deps: deps(),
1615

1716
# Hex
@@ -37,14 +36,6 @@ defmodule HexSolver.MixProject do
3736
defp elixirc_paths(:test), do: ["lib", "test/support"]
3837
defp elixirc_paths(_), do: ["lib"]
3938

40-
defp config_path() do
41-
if Version.compare(System.version(), "1.11.0") in [:eq, :gt] do
42-
"config/config.exs"
43-
else
44-
"config/mix_config.exs"
45-
end
46-
end
47-
4839
# Run "mix help deps" to learn about dependencies.
4940
defp deps do
5041
[

0 commit comments

Comments
 (0)