From ccb399ecf1de27a0038a1fefaffcf445f7829022 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 22 Dec 2023 15:12:05 +0100 Subject: [PATCH] Runtime: Add new job to test Rebar3 with Elixir enabled --- .github/workflows/runtime.yml | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index 9fe317bef40..032ca116d34 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml @@ -98,6 +98,66 @@ jobs: && _build/dev/rel/ejabberd/bin/ejabberdctl stopped cat _build/dev/rel/ejabberd/logs/* + rebar3-elixir: + name: Rebar3+Elixir + strategy: + fail-fast: false + matrix: + otp: ['20.3', '25.3', '26'] + elixir: ['1.15'] + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v4 + + - name: Get specific Erlang/OTP + uses: erlef/setup-beam@v1 + with: + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} + + - name: Prepare libraries + run: | + apt-get -qq update + apt-get purge -y libgd3 + apt-get -qq install libexpat1-dev libgd-dev libpam0g-dev \ + libsqlite3-dev libwebp-dev libyaml-dev + + - name: Compile + run: | + ./autogen.sh + ./configure --with-rebar=./rebar3 \ + --prefix=/tmp/ejabberd \ + --enable-all \ + --disable-odbc + make update + make + + - run: make xref + + - name: Test rel + run: | + make rel + _build/prod/rel/ejabberd/bin/ejabberdctl start \ + && _build/prod/rel/ejabberd/bin/ejabberdctl started + _build/prod/rel/ejabberd/bin/ejabberdctl register user1 localhost s0mePass + _build/prod/rel/ejabberd/bin/ejabberdctl registered_users localhost + _build/prod/rel/ejabberd/bin/ejabberdctl stop \ + && _build/prod/rel/ejabberd/bin/ejabberdctl stopped + cat _build/prod/rel/ejabberd/logs/* + + - name: Test dev + run: | + make dev + _build/dev/rel/ejabberd/bin/ejabberdctl start \ + && _build/dev/rel/ejabberd/bin/ejabberdctl started + _build/dev/rel/ejabberd/bin/ejabberdctl register user1 localhost s0mePass + _build/dev/rel/ejabberd/bin/ejabberdctl registered_users localhost + _build/dev/rel/ejabberd/bin/ejabberdctl stop \ + && _build/dev/rel/ejabberd/bin/ejabberdctl stopped + cat _build/dev/rel/ejabberd/logs/* + mix: name: Mix strategy: