CI: Update to match recent changes in ejabberd
- Update Ubuntu to latest (22.04) - Remove support for rebar2 testing - Xref ignore http_uri:encode/1, which surfaces with OTP 24.3
This commit is contained in:
parent
241df9ac97
commit
b71cbeb48a
|
@ -21,31 +21,30 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
otp: ['21.3', '24.3', '25']
|
otp: ['21.0', '21.3', '24.3', '25']
|
||||||
rebar: ['rebar3']
|
runs-on: ubuntu-latest
|
||||||
include:
|
|
||||||
- otp: '21.3'
|
|
||||||
os: ubuntu-20.04
|
|
||||||
- otp: '24.3'
|
|
||||||
os: ubuntu-20.04
|
|
||||||
- otp: '25'
|
|
||||||
os: ubuntu-20.04
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
container:
|
container:
|
||||||
image: erlang:${{ matrix.otp }}
|
image: erlang:${{ matrix.otp }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout ejabberd
|
- name: Checkout ejabberd
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: processone/ejabberd
|
repository: processone/ejabberd
|
||||||
|
|
||||||
- name: Checkout ejabberd-contrib
|
- name: Checkout ejabberd-contrib
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: .ejabberd-modules/sources/ejabberd-contrib
|
path: .ejabberd-modules/sources/ejabberd-contrib
|
||||||
|
|
||||||
|
- name: Get a compatible Rebar3
|
||||||
|
if: matrix.otp <= '21.3'
|
||||||
|
run: |
|
||||||
|
rm rebar3
|
||||||
|
wget https://github.com/processone/ejabberd/raw/21.12/rebar3
|
||||||
|
chmod +x rebar3
|
||||||
|
|
||||||
- name: Prepare libraries
|
- name: Prepare libraries
|
||||||
run: |
|
run: |
|
||||||
apt-get -qq update
|
apt-get -qq update
|
||||||
|
@ -58,6 +57,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo '{xref_ignores, [{eldap_filter_yecc, return_error, 2},
|
echo '{xref_ignores, [{eldap_filter_yecc, return_error, 2},
|
||||||
{fusco_lib, split_credentials, 1},
|
{fusco_lib, split_credentials, 1},
|
||||||
|
{http_uri, encode, 1},
|
||||||
{http_uri, decode, 1}
|
{http_uri, decode, 1}
|
||||||
]}.' >>rebar.config
|
]}.' >>rebar.config
|
||||||
echo '{xref_checks, [deprecated_function_calls, deprecated_functions,
|
echo '{xref_checks, [deprecated_function_calls, deprecated_functions,
|
||||||
|
@ -76,16 +76,13 @@ jobs:
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
deps/
|
|
||||||
dialyzer/
|
|
||||||
ebin/
|
|
||||||
~/.cache/rebar3/
|
~/.cache/rebar3/
|
||||||
key: ${{matrix.otp}}-${{matrix.rebar}}-${{hashFiles('rebar.config')}}
|
key: ${{matrix.otp}}-${{hashFiles('rebar.config')}}
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --with-rebar=`which rebar3` \
|
./configure --with-rebar=./rebar3 \
|
||||||
--prefix=/tmp/ejabberd \
|
--prefix=/tmp/ejabberd \
|
||||||
--enable-all \
|
--enable-all \
|
||||||
--disable-elixir \
|
--disable-elixir \
|
||||||
|
|
Loading…
Reference in New Issue