From 6fe7a237b3ff3e0ed239156177aab3d26dd131a3 Mon Sep 17 00:00:00 2001 From: stoffu Date: Tue, 20 Dec 2022 15:16:00 +0900 Subject: [PATCH 1/3] build: tweak to make it build on M1 Mac --- aeon-wallet-gui.pro | 1 + 1 file changed, 1 insertion(+) diff --git a/aeon-wallet-gui.pro b/aeon-wallet-gui.pro index 811047cab3..4fb21ccf6e 100644 --- a/aeon-wallet-gui.pro +++ b/aeon-wallet-gui.pro @@ -348,6 +348,7 @@ macx { -L/usr/local/lib \ -L$$OPENSSL_LIBRARY_DIRS \ -L/usr/local/opt/boost/lib \ + -L/opt/homebrew/lib \ -lboost_serialization \ # -lhidapi \ -lboost_thread-mt \ From de7855de3b46bc9a3c24c02e7530fbda25c3d078 Mon Sep 17 00:00:00 2001 From: stoffu Date: Tue, 20 Dec 2022 15:16:51 +0900 Subject: [PATCH 2/3] add codemagic.yaml --- codemagic.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 codemagic.yaml diff --git a/codemagic.yaml b/codemagic.yaml new file mode 100644 index 0000000000..3774a3fb46 --- /dev/null +++ b/codemagic.yaml @@ -0,0 +1,42 @@ +workflows: + build: + name: Build workflow + scripts: + - name: install dependencies + script: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt@5 + - name: fetch zmq.hpp + script: brew tap osrf/simulation && brew install cppzmq + - name: build + script: | + export PATH="/opt/homebrew/opt/qt@5/bin:$PATH" + ./build.sh + - name: test qml + script: build/release/bin/aeon-wallet-gui.app/Contents/MacOS/aeon-wallet-gui --test-qml + - name: deploy + script: | + export PATH="/opt/homebrew/opt/qt@5/bin:$PATH" + make deploy + working_directory: build + - name: build CLI + script: | + rm -rf build/ + USE_SINGLE_BUILDDIR=1 make release-static -j3 + cp build/release/bin/* ../build/release/bin/ + cp build/release/bin/aeond ../build/release/bin/aeon-wallet-gui.app/Contents/MacOS/aeond + working_directory: monero + - name: archive + script: | + export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)" + mkdir $ARTIFACT_NAME + cp -rf bin/* $ARTIFACT_NAME + tar cvzf $ARTIFACT_NAME.tar.bz2 $ARTIFACT_NAME + working_directory: build/release + - name: SHA256 checksum + script: | + export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)" + openssl sha256 $ARTIFACT_NAME.tar.bz2 + working_directory: build/release + - name: upload to transfer.sh + script: | + export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)" + curl --upload-file build/release/$ARTIFACT_NAME.tar.bz2 https://transfer.sh/$ARTIFACT_NAME.tar.bz2 From 02503ff45086e88a046a5583a07a2b6a05875fd3 Mon Sep 17 00:00:00 2001 From: stoffu Date: Tue, 17 Jan 2023 17:40:05 +0900 Subject: [PATCH 3/3] codemagic.yaml: add GitHub release logic requires #277 --- codemagic.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/codemagic.yaml b/codemagic.yaml index 3774a3fb46..824e498fb6 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -1,6 +1,16 @@ workflows: build: name: Build workflow + triggering: + events: + - tag + branch_patterns: + - pattern: '*' + include: true + source: true + environment: + groups: + - github scripts: - name: install dependencies script: HOMEBREW_NO_AUTO_UPDATE=1 brew install boost openssl zmq libpgm miniupnpc ldns expat libunwind-headers protobuf qt@5 @@ -40,3 +50,13 @@ workflows: script: | export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)" curl --upload-file build/release/$ARTIFACT_NAME.tar.bz2 https://transfer.sh/$ARTIFACT_NAME.tar.bz2 + - name: Publish to GitHub + script: | + #!/usr/bin/env zsh + # Publish only for tag builds + if [ -z ${CM_TAG} ]; then + echo "Not a tag build, will not publish GitHub release" + exit 0 + fi + export ARTIFACT_NAME="aeon-gui-mac-armv8-$(git describe --tags)" + gh release upload "${CM_TAG}" build/release/$ARTIFACT_NAME.tar.bz2