cmake: implement MacOS 'release' build + CI support

This commit is contained in:
xiphon
2020-07-07 23:04:47 +00:00
parent b7b1221221
commit d931022963
3 changed files with 54 additions and 12 deletions

View File

@@ -6,15 +6,28 @@ jobs:
build-macos:
runs-on: macOS-latest
strategy:
fail-fast: false
matrix:
toolchain:
- name: "qmake"
cmd: "export PATH=$PATH:/usr/local/opt/qt/bin && ./build.sh"
output: build/release/bin/monero-wallet-gui.app/Contents/MacOS/monero-wallet-gui
- name: "cmake"
cmd: "USE_SINGLE_BUILDDIR=ON DEV_MODE=ON make release -j3"
output: build/release/bin/monero-wallet-gui
name: build-macos-${{ matrix.toolchain.name }}
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: update brew and install dependencies
run: brew update && brew install boost hidapi zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt5 libgcrypt
run: brew update && brew install boost hidapi zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt5 pkg-config
- name: build
run: export PATH=$PATH:/usr/local/opt/qt/bin && ./build.sh
run: ${{ matrix.toolchain.cmd }}
- name: test qml
run: build/release/bin/monero-wallet-gui.app/Contents/MacOS/monero-wallet-gui --test-qml
run: ${{ matrix.toolchain.output }} --test-qml
build-ubuntu: