CI: Use checkout v3 for erlang < 20.3, and v4 for newer ones

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
This commit is contained in:
Badlop
2024-02-26 09:21:45 +01:00
parent 2cce22869d
commit 1d3bc59b0b
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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: |