build(mix): use extra_applications
instead of applications
#152
This file contains hidden or 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: | |
SERVER_FOLDER: rabbitmq-server | |
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 | |
path: ${{ env.SERVER_FOLDER }} | |
- 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: Run tests | |
working-directory: ${{ env.PLUGIN_FOLDER }} | |
run: | | |
MIX_ENV=test make tests current_rmq_ref=${{ matrix.rmqref }} | |
- name: Build distribution files | |
working-directory: ${{ env.PLUGIN_FOLDER }} | |
run: | | |
MIX_ENV=prod DIST_AS_EZS=yes make dist current_rmq_ref=${{ matrix.rmqref }} | |
- name: Store build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugins | |
path: ${{ env.PLUGIN_FOLDER }}/plugins/ |