-
Notifications
You must be signed in to change notification settings - Fork 34
48 lines (48 loc) · 1.39 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/