Skip to content

Commit

Permalink
CI: Use ubuntu-24.04 by using elixir container (processone/ejabberd#4281
Browse files Browse the repository at this point in the history
)
  • Loading branch information
badlop committed Nov 18, 2024
1 parent a357f8a commit a10ff70
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
strategy:
fail-fast: false
matrix:
otp: [25, 26, 27]
elixir: ['1.17']
runs-on: ubuntu-20.04
elixir: ['1.13', '1.14', '1.15', '1.16', '1.17']
runs-on: ubuntu-24.04
container:
image: elixir:${{ matrix.elixir }}

steps:

Expand All @@ -32,23 +33,17 @@ jobs:
with:
repository: processone/ejabberd

- name: Get specific Erlang/OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

- name: Checkout ejabberd-contrib
uses: actions/checkout@v4
with:
path: .ejabberd-modules/sources/ejabberd-contrib

- name: Prepare libraries
run: |
sudo apt-get -qq update
sudo apt-get -y purge libgd3 nginx
sudo apt-get -qq install libexpat1-dev libgd-dev libpam0g-dev \
libsqlite3-dev libwebp-dev libyaml-dev
apt-get -qq update
apt-get -y purge libgd3 nginx
apt-get -qq install libexpat1-dev libgd-dev libpam0g-dev \
libsqlite3-dev libwebp-dev libyaml-dev
- name: Prepare rebar
id: rebar
Expand All @@ -70,7 +65,12 @@ jobs:
~/.cache/rebar3/
~/.hex/
~/.mix/
key: ${{matrix.otp}}-${{hashFiles('rebar.config')}}
key: ${{matrix.elixir}}-${{hashFiles('rebar.config')}}

- name: Install Hex and Rebar3 manually on older Elixir
run: |
mix local.hex --force
mix local.rebar --force
- name: Compile
run: |
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
run: sed -i '/mod_captcha_rust/d' modules_available.txt

- name: Disable mod_s3_upload testing with old OTP
if: matrix.otp < 25
if: matrix.elixir < '1.16'
run: sed -i '/mod_s3_upload/d' modules_available.txt

- name: Install modules
Expand Down

0 comments on commit a10ff70

Please sign in to comment.