Skip to content

Commit 7e28c7e

Browse files
committed
feat(ci): add rebar3-version input to elixir-ci-reusable (bypass builds.hex.pm cert)
setup-beam's mix local.rebar fetches rebar from builds.hex.pm, which fails under OTP with a TLS key_usage_mismatch on that host's cert. An optional rebar3-version input (wired to setup-beam) makes it install rebar3 from GitHub releases instead. Empty default = unchanged for existing callers. Required: bofig's elixir-ci.yml already passes rebar3-version (PR #107).
1 parent 59429dc commit 7e28c7e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/elixir-ci-reusable.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ on:
7373
type: string
7474
required: false
7575
default: "1.17"
76+
rebar3-version:
77+
description: >-
78+
rebar3 version for erlef/setup-beam. When set, setup-beam installs
79+
rebar3 from GitHub releases instead of letting `mix local.rebar`
80+
fetch it from builds.hex.pm — a workaround for the OTP TLS
81+
`key_usage_mismatch` cert error on that host. Empty = unchanged.
82+
type: string
83+
required: false
84+
default: ""
7685
enable_dialyzer:
7786
description: Run `mix dialyzer` (slow cold-cache; off by default)
7887
type: boolean
@@ -152,6 +161,7 @@ jobs:
152161
with:
153162
otp-version: ${{ inputs.otp-version }}
154163
elixir-version: ${{ inputs.elixir-version }}
164+
rebar3-version: ${{ inputs.rebar3-version }}
155165

156166
- name: Cache deps
157167
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5

0 commit comments

Comments
 (0)