Add RabbitMQ to the CI

This commit is contained in:
Lee *!* Clagett 2023-09-08 20:14:51 -04:00 committed by GitHub
parent 619d69fb92
commit 97f9a9295b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, macos-latest, macos-12, macos-11]
rmq: [ON, OFF]
steps:
- name: set apt conf (Debian based Linux)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-20.04'
@ -31,10 +32,16 @@ jobs:
- name: Install dependencies (Debian based Linux)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-20.04'
run: ${{env.APT_INSTALL_LINUX}}
- name: Install RabbitMQ iff WITH_RMQ (Debian based Linux)
if: matrix.rmq == 'ON' && (matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-20.04')
run: sudo apt -y install librabbitmq-dev
- name: Install dependencies (MacOS)
if: matrix.os == 'macos-latest' || matrix.os == 'macos-12' || matrix.os == 'macos-11'
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi openssl zmq libpgm miniupnpc expat libunwind-headers protobuf ccache
- name: Install RabbitMQ iff WITH_RMQ (MacOS)
if: matrix.rmq == 'ON' && (matrix.os == 'macos-latest' || matrix.os == 'macos-12' || matrix.os == 'macos-11')
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install rabbitmq
- name: Checkout Monero Source
uses: actions/checkout@v3
@ -44,7 +51,7 @@ jobs:
submodules: recursive
- name: Configure Monero
run: cmake -B ${{github.workspace}}/monero/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{github.workspace}}/monero
run: cmake -B ${{github.workspace}}/monero/build -DWITH_RMQ=${{matrix.rmq}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{github.workspace}}/monero
- name: Build Monero
run: cd ${{github.workspace}}/monero/build && make -j$(nproc) daemon lmdb_lib multisig