Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 42 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,78 @@ jobs:
- elixir: 1.4.x
otp: 20
os: ubuntu-20.04
Copy link
Author

@sgerrand sgerrand May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runner image has been retired and can't be used by a GitHub Actions workflow job any more.

This is a scheduled Ubuntu 20.04 retirement. Ubuntu 20.04 LTS runner will be removed on 2025-04-15. For more details, see https://github.com/actions/runner-images/issues/11101

The implications of this are that any Elixir & OTP pairs which used ubuntu-20.04 as the runner image will break as the erlef/setup-beam action uses Hex.pm's OTP builds as the source of available builds. This means that OTP versions 20.x - 24.1 inclusive aren't available for download and installation.

I'll see if I can find a replacement image or another approach which enables keeping these older OTP versions in the build matrix.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No luck in finding an immediate replacement for this deprecated image. However, I have successfully tested that OTP versions built for Ubuntu 20.04 work fine on Ubuntu 22.04. I plan to propose that Hex.pm's builder be extended to account for these deprecations of GitHub's ubuntu-20.04 runner image.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up resolving this problem by creating a similar job in 71212eb and slicing the parts of the build matrix which depend on Ubuntu 20.04 in a container instead. It will make the workflow definition a little more cumbersome to maintain but the older Elixir & OTP pairs are unlikely to change.

gcc: gcc-10
gpp: g++-10
- elixir: 1.5.x
otp: 20
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.6.x
otp: 20
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.7.x
otp: 20
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.8.x
otp: 20
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.9.x
otp: 20
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.10.x
otp: 21
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.11.x
otp: 22
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.11.x
otp: 23
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.12.x
otp: 23
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.13.x
otp: 24
os: ubuntu-20.04
gcc: gcc-10
gpp: g++-10
- elixir: 1.14.x
otp: 25
os: ubuntu-22.04
gcc: gcc-11
gpp: g++-11
- elixir: 1.15.x
otp: 26
os: ubuntu-22.04
gcc: gcc-11
gpp: g++-11
- elixir: 1.16.x
otp: 26
os: ubuntu-22.04
gcc: gcc-11
gpp: g++-11
- elixir: 1.17.x
otp: 27
os: ubuntu-latest
gcc: gcc-13
gpp: g++-13
warnings_as_errors: true
env:
MIX_ENV: test
Expand All @@ -79,12 +115,12 @@ jobs:
- run: mix compile --warnings-as-errors
if: matrix.warnings_as_errors
env:
CC: gcc-10
CXX: g++-10
CC: ${{matrix.gcc}}
CXX: ${{matrix.gpp}}
- run: mix test
env:
CC: gcc-10
CXX: g++-10
CC: ${{matrix.gcc}}
CXX: ${{matrix.gpp}}
dialyzer:
name: mix dialyzer
runs-on: ubuntu-latest
Expand All @@ -94,8 +130,8 @@ jobs:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 26
elixir-version: 1.15.x
otp-version: 27
elixir-version: 1.17.x
- name: Install Dependencies
run: |
mix local.hex --force
Expand Down