From 1ddc4a5c5d0ced5486503f63f4efa1606467036c Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 19 Feb 2024 16:04:54 +0100 Subject: [PATCH] CI/Runtime: For OTP < 24 use rebar binaries from ejabberd 21.12 --- .github/workflows/ci.yml | 2 +- .github/workflows/runtime.yml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c86d7d158..1b7e46a48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: otp-version: ${{ matrix.otp }} - name: Get a compatible Rebar3 - if: matrix.otp <= '21.3' + if: matrix.otp < 24 run: | rm rebar3 wget https://github.com/processone/ejabberd/raw/21.12/rebar3 diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index bceab94f7..587adb71f 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v4 - name: Get compatible Rebar binaries - if: matrix.otp < 23 + if: matrix.otp < 24 run: | rm rebar rm rebar3 @@ -170,6 +170,16 @@ jobs: otp-version: ${{matrix.otp}} elixir-version: ${{matrix.elixir}} + - name: Get compatible Rebar binaries + if: matrix.otp < 24 + run: | + rm rebar + rm rebar3 + wget https://github.com/processone/ejabberd/raw/21.12/rebar + wget https://github.com/processone/ejabberd/raw/21.12/rebar3 + chmod +x rebar + chmod +x rebar3 + - name: Prepare libraries run: | sudo apt-get -qq update