Skip to content

Commit

Permalink
CI: Replace erlang container with setup-beam action
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jul 16, 2024
1 parent 807b4ff commit 7ebae89
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ jobs:
strategy:
fail-fast: false
matrix:
otp: [21, 25, 26, 27]
runs-on: ubuntu-22.04
container:
image: erlang:${{ matrix.otp }}
otp: [23, 26, 27]
elixir: ['1.13', '1.17']
exclude:
- otp: '23.0'
elixir: '1.17'
- otp: '26'
elixir: '1.13'
- otp: '27'
elixir: '1.13'
runs-on: ubuntu-20.04

steps:

Expand All @@ -33,23 +39,29 @@ 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: Get a compatible Rebar3
if: matrix.otp <= 21
if: matrix.otp <= 23
run: |
rm rebar3
wget https://github.com/processone/ejabberd/raw/21.12/rebar3
chmod +x rebar3
- name: Prepare libraries
run: |
apt-get -qq update
apt-get -y purge libgd3 nginx
apt-get -qq install libexpat1-dev libgd-dev libpam0g-dev \
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
- name: Prepare rebar
Expand Down Expand Up @@ -159,7 +171,7 @@ jobs:
run: |
rm -rf _build/default/lib/ejabberd/ebin/fusco*
rm -rf _build/default/lib/ejabberd/ebin/observer_cli*
make dialyzer # Too many errors... first fix them, then enable this
make dialyzer
- name: View logs dir
if: always()
Expand Down

0 comments on commit 7ebae89

Please sign in to comment.