actions: build within RMQ folder #138
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] | |
env: | |
PLUGIN_FOLDER: rabbitmq-server/deps/rabbitmq-message-deduplication | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
erlang: | |
- '26.2' | |
elixir: | |
- '1.16.3' | |
rmqref: | |
- v3.13.x | |
- v4.0.x | |
steps: | |
- name: Checkout RabbitMQ Server | |
uses: actions/checkout@v4 | |
with: | |
repository: rabbitmq/rabbitmq-server | |
- name: Checkout Plugin | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ env.PLUGIN_FOLDER }} | |
- name: Install Erlang and Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.erlang }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Check What The Fuck is happening God Fucking Dammit | |
run: | | |
ls -ahl | |
find . -type d | |
- name: Run tests | |
working-directory: ${{ env.PLUGIN_FOLDER }} | |
run: | | |
make current_rmq_ref=${{ matrix.rmqref }} | |
make tests current_rmq_ref=${{ matrix.rmqref }} | |
- name: Build distribution files | |
working-directory: ${{ env.PLUGIN_FOLDER }} | |
run: | | |
DIST_AS_EZS=yes make dist current_rmq_ref=${{ matrix.rmqref }} | |
- name: Store build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: plugins | |
path: ${{ env.PLUGIN_FOLDER }}/plugins/ |