actions: update Ubuntu and Erlang versions #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
erlang: | |
- 1:26.2.1-1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Erlang | |
run: | | |
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb | |
sudo dpkg -i erlang-solutions_2.0_all.deb | |
sudo apt update | |
sudo apt install -y --allow-downgrades esl-erlang=${{ matrix.erlang }} | |
- name: Install Elixir | |
run: | | |
sudo apt install -y elixir=1.13.4-1 | |
- name: Install RMQ requirements | |
run: | | |
wget https://github.com/rabbitmq/mix_task_archive_deps/releases/download/0.5.0/mix_task_archive_deps-0.5.0.ez | |
mix archive.install --force ./mix_task_archive_deps-0.5.0.ez | |
rm mix_task_archive_deps-0.5.0.ez | |
- name: Clone and build RMQ | |
run: | | |
# For some reason, we cannot easily build an external plugin anymore | |
# we clone the whole monorepo, rsync the folder within and build from there | |
git clone https://github.com/rabbitmq/rabbitmq-server.git | |
rsync -Rr --exclude rabbitmq-server/ . rabbitmq-server/deps/rabbitmq-message-deduplication/ | |
make -C rabbitmq-server FULL=1 | |
- name: Run tests | |
run: | | |
make -C rabbitmq-server/deps/rabbitmq-message-deduplication tests |