Skip to content

Commit 48219de

Browse files
committed
ci: fix BEAM setup on ubuntu-24.04-arm runner
GitHub's hosted ubuntu-24.04-arm runner reports ImageOS=ubuntu24-arm64, which erlef/setup-beam does not recognize (it expects ubuntu24 and picks the architecture from the runner separately). Split the setup-beam step so the arm leg runs with env ImageOS=ubuntu24, keeping full Elixir/NIF test coverage on arm64. Other platforms use their native ImageOS unchanged.
1 parent ddfe170 commit 48219de

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,20 @@ jobs:
5656
- name: Run Zig tests
5757
run: zig build test
5858

59+
# GitHub's hosted ubuntu-24.04-arm runner reports ImageOS=ubuntu24-arm64,
60+
# which setup-beam doesn't recognize. Override it to ubuntu24 so the action
61+
# can locate the arm64 OTP/Elixir builds (architecture is detected separately).
62+
- name: Set up Erlang/Elixir (ARM)
63+
if: matrix.os == 'ubuntu-24.04-arm'
64+
uses: erlef/setup-beam@v1
65+
env:
66+
ImageOS: ubuntu24
67+
with:
68+
otp-version: "27"
69+
elixir-version: "1.17"
70+
5971
- name: Set up Erlang/Elixir
72+
if: matrix.os != 'ubuntu-24.04-arm'
6073
uses: erlef/setup-beam@v1
6174
with:
6275
otp-version: "27"

0 commit comments

Comments
 (0)