From 332df0b2f608c8d1e51dd578e9abedac4f294231 Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Fri, 4 Aug 2023 15:37:21 -0400 Subject: [PATCH] First atttempt at a macos CI --- .github/workflows/build-ubuntu.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index fbb16db..5a299c3 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -1,4 +1,4 @@ -name: ubuntu-ci +name: github-ci on: push: @@ -20,16 +20,24 @@ jobs: runs-on: ${{matrix.os}} strategy: matrix: - os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04] + os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, macos-latest, macos-12, macos-11] steps: - name: set apt conf + if: matrix.os == "ubuntu-latest" || matrix.os == "ubuntu-22.04" || matrix.os == "ubuntu-20.04" run: ${{env.APT_SET_CONF}} - name: update apt + if: matrix.os == "ubuntu-latest" || matrix.os == "ubuntu-22.04" || matrix.os == "ubuntu-20.04" run: sudo apt update - - name: install monero dependencies + - name: Install dependencies (Linux) + if: matrix.os == "ubuntu-latest" || matrix.os == "ubuntu-22.04" || matrix.os == "ubuntu-20.04" run: ${{env.APT_INSTALL_LINUX}} + + - 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 - - uses: actions/checkout@v3 + - name: Checkout Monero Source + uses: actions/checkout@v3 with: repository: monero-project/monero path: ${{github.workspace}}/monero/ @@ -41,7 +49,8 @@ jobs: - name: Build Monero run: cd ${{github.workspace}}/monero/build && make -j$(nproc) daemon lmdb_lib multisig - - uses: actions/checkout@v3 + - name: Checkout LWS Source + uses: actions/checkout@v3 with: path: ${{github.workspace}}/lws