Skip to content

Commit

Permalink
actions: build within RMQ folder
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <[email protected]>
  • Loading branch information
noxdafox committed Oct 20, 2024
1 parent a3b2e38 commit 4a07159
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: build
on: [push, pull_request]
env:
PLUGIN_FOLDER: rabbitmq-server/deps/rabbitmq-message-deduplication
jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -13,21 +15,30 @@ jobs:
- v3.13.x
- v4.0.x
steps:
- uses: actions/checkout@v4
- name: Checkout RabbitMQ Server
uses: actions/checkout@v4
with:
repository: rabbitmq/rabbitmq-server
- name: Checkout Plugin
uses: actions/checkout@v4
with:
path: rabbitmq-server/deps
- 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: |
make current_rmq_ref=${{ matrix.rmqref }}
make tests current_rmq_ref=${{ matrix.rmqref }}
make
make tests
- name: Build distribution files
working-directory: ${{ env.PLUGIN_FOLDER }}
run: |
DIST_AS_EZS=yes make dist current_rmq_ref=${{ matrix.rmqref }}
DIST_AS_EZS=yes make dist
- name: Store build artifacts
uses: actions/upload-artifact@v3
with:
name: plugins
path: plugins/
path: ${{ env.PLUGIN_FOLDER }}/plugins/

0 comments on commit 4a07159

Please sign in to comment.