Update Github CI (#106)

* Update to checkout v4
* Remove unnecessary package installs
* Remove macOS 11 from matrix (brew install issues)
This commit is contained in:
Lee *!* Clagett 2024-04-06 11:30:33 -04:00 committed by Lee *!* Clagett
parent d49cc0df9a
commit f242063422

View file

@ -9,7 +9,7 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
APT_INSTALL_LINUX: 'sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache'
APT_INSTALL_LINUX: 'sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler'
APT_SET_CONF: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
@ -20,7 +20,7 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, macos-latest, macos-12, macos-11]
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, macos-latest, macos-12]
rmq: [WITH_RMQ=ON, WITH_RMQ=OFF]
steps:
- name: set apt conf (Debian based Linux)
@ -38,13 +38,13 @@ jobs:
- 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
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost hidapi openssl zmq libpgm miniupnpc expat libunwind-headers protobuf
- name: Install RabbitMQ iff WITH_RMQ (MacOS)
if: matrix.rmq == 'WITH_RMQ=ON' && (matrix.os == 'macos-latest' || matrix.os == 'macos-12' || matrix.os == 'macos-11')
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install rabbitmq-c
- name: Checkout Monero Source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: monero-project/monero
path: ${{github.workspace}}/monero/
@ -57,7 +57,7 @@ jobs:
run: cd ${{github.workspace}}/monero/build && make -j$(nproc) daemon lmdb_lib multisig
- name: Checkout LWS Source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{github.workspace}}/lws