From 1d3bc59b0b58b31012ffbff90364f98502d3a0d3 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 26 Feb 2024 09:21:45 +0100 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 5 ++++- .github/workflows/hexpm-release.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8968841..0b7e137 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/hexpm-release.yml b/.github/workflows/hexpm-release.yml index 6ae7bde..10baec7 100644 --- a/.github/workflows/hexpm-release.yml +++ b/.github/workflows/hexpm-release.yml @@ -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: |