Skip to content

Commit

Permalink
CI: Use checkout v3 for erlang < 20.3, and v4 for newer ones
Browse files Browse the repository at this point in the history
actions/checkout@v4 updated from node16 to node20,
which requires a recent GLIBC 2.27 or 2.28,
however some old erlang container images include too old GLIBC
  • Loading branch information
badlop committed Feb 26, 2024
1 parent 1f6c519 commit aaf2d38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
container:
image: erlang:${{ matrix.otp }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
if: matrix.otp < '20.3'
- uses: actions/checkout@v4
if: matrix.otp >= '20.3'
- run: rebar3 compile
- run: rebar3 xref
- run: rebar3 dialyzer
Expand All @@ -25,7 +28,7 @@ jobs:
needs: [tests]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: 26
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hexpm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
image: erlang:26
steps:
- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup rebar3 hex
run: |
Expand Down

0 comments on commit aaf2d38

Please sign in to comment.