diff --git a/.github/workflows/compat.yaml b/.github/workflows/compat.yaml index 00296de..8f973e5 100644 --- a/.github/workflows/compat.yaml +++ b/.github/workflows/compat.yaml @@ -1,5 +1,5 @@ name: compatibility check -on: [push, pull_request] +on: [push] jobs: mingw: runs-on: ubuntu-latest @@ -29,11 +29,18 @@ jobs: run: ./build_single.sh monero i686-w64-mingw32 -j$(nproc) - name: wownero/i686-w64-mingw32 run: ./build_single.sh wownero i686-w64-mingw32 -j$(nproc) - - name: Upload Artifact - uses: kittaakos/upload-artifact-as-is@v0 + - name: rename artifacts + run: | + mkdir release/gh/ + for i in release/monero/* + do + mv "$i" "release/gh/monero_$(basename $i)" + done + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: - path: release/*/*.xz - + files: release/gh/* android: runs-on: ubuntu-latest container: @@ -66,10 +73,18 @@ jobs: run: ./build_single.sh monero arm-linux-androideabi -j$(nproc) - name: wownero/arm-linux-androideabi run: ./build_single.sh wownero arm-linux-androideabi -j$(nproc) - - name: Upload Artifact - uses: kittaakos/upload-artifact-as-is@v0 + - name: rename artifacts + run: | + mkdir release/gh/ + for i in release/monero/* + do + mv "$i" "release/gh/monero_$(basename $i)" + done + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: - path: release/*/*.xz + files: release/gh/* linux: runs-on: ubuntu-latest container: @@ -102,7 +117,15 @@ jobs: run: ./build_single.sh monero i686-linux-gnu -j$(nproc) - name: wownero/i686-linux-gnu run: ./build_single.sh wownero i686-linux-gnu -j$(nproc) - - name: Upload Artifact - uses: kittaakos/upload-artifact-as-is@v0 + - name: rename artifacts + run: | + mkdir release/gh/ + for i in release/monero/* + do + mv "$i" "release/gh/monero_$(basename $i)" + done + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: - path: release/*/*.xz \ No newline at end of file + files: release/gh/* \ No newline at end of file diff --git a/build_single.sh b/build_single.sh index f5b5383..f62cd67 100755 --- a/build_single.sh +++ b/build_single.sh @@ -91,13 +91,13 @@ case "$HOST_ABI" in ;; "x86_64-apple-darwin11") export PATH="$WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/bin:$PATH" - export CC="clang -stdlib=libc++ -target x86_64-apple-darwin11 -mmacosx-version-min=10.8 --sysroot $WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/bin/x86_64-apple-darwin11-" - export CXX="clang++ -stdlib=libc++ -target x86_64-apple-darwin11 -mmacosx-version-min=10.8 --sysroot $WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/bin/x86_64-apple-darwin11-" + export CC="clang -stdlib=libc++ -target x86_64-apple-darwin11 -mmacosx-version-min=10.14 --sysroot $WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/bin/x86_64-apple-darwin11-" + export CXX="clang++ -stdlib=libc++ -target x86_64-apple-darwin11 -mmacosx-version-min=10.14 --sysroot $WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/x86_64-apple-darwin11/native/bin/x86_64-apple-darwin11-" ;; "aarch64-apple-darwin11") export PATH="$WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/bin:$PATH" - export CC="clang -stdlib=libc++ -target arm64-apple-darwin11 -mmacosx-version-min=10.8 --sysroot $WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/bin/aarch64-apple-darwin11-" - export CXX="clang++ -stdlib=libc++ -target arm64-apple-darwin11 -mmacosx-version-min=10.8 --sysroot $WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/bin/aarch64-apple-darwin11-" + export CC="clang -stdlib=libc++ -target arm64-apple-darwin11 -mmacosx-version-min=10.14 --sysroot $WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/bin/aarch64-apple-darwin11-" + export CXX="clang++ -stdlib=libc++ -target arm64-apple-darwin11 -mmacosx-version-min=10.14 --sysroot $WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/SDK/ -mlinker-version=609 -B$WDIR/$repo/contrib/depends/aarch64-apple-darwin11/native/bin/aarch64-apple-darwin11-" ;; "host-apple-darwin"|"x86_64-host-apple-darwin"|"aarch64-host-apple-darwin") export CC="clang" diff --git a/patches/monero/0012-WIP-UR-functions.patch b/patches/monero/0012-WIP-UR-functions.patch index 983789d..d6dc1bd 100644 --- a/patches/monero/0012-WIP-UR-functions.patch +++ b/patches/monero/0012-WIP-UR-functions.patch @@ -1,4 +1,4 @@ -From 692e1f93bc0ae7b40b6ecec5ea8f47658ffd1816 Mon Sep 17 00:00:00 2001 +From f91e92ddaa7c12dcc8f38ac37ff852446bd10722 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Thu, 16 May 2024 17:28:59 +0200 Subject: [PATCH] WIP: UR functions @@ -10,12 +10,22 @@ especially because it allows us to skip the part when we have to store things to file to encode them later. Now we are fully in memory + +Things broken in the commit +- ledger support. + AUTO_LOCK_CMD macro causes compile time + issues with this patch. I don't know why + just yet, this is a issue that I'll fix + later. However (considering the purpose + of this patch) it is not a dealbreaker. --- .gitmodules | 3 + CMakeLists.txt | 4 +- + contrib/depends/hosts/darwin.mk | 2 +- + contrib/depends/toolchain.cmake.in | 2 +- external/CMakeLists.txt | 1 + external/bc-ur | 1 + - src/device/device_ledger.cpp | 2 +- + src/device/device_ledger.cpp | 5 +- src/wallet/CMakeLists.txt | 1 + src/wallet/api/pending_transaction.cpp | 33 +++ src/wallet/api/pending_transaction.h | 1 + @@ -26,7 +36,7 @@ Now we are fully in memory src/wallet/api/wallet2_api.h | 19 +- src/wallet/wallet2.cpp | 96 ++++---- src/wallet/wallet2.h | 2 + - 15 files changed, 448 insertions(+), 50 deletions(-) + 17 files changed, 452 insertions(+), 53 deletions(-) create mode 160000 external/bc-ur diff --git a/.gitmodules b/.gitmodules @@ -62,6 +72,29 @@ index 63b8c5079..6028c0961 100644 check_submodule(external/miniupnp) check_submodule(external/rapidjson) check_submodule(external/trezor-common) +diff --git a/contrib/depends/hosts/darwin.mk b/contrib/depends/hosts/darwin.mk +index cbe795081..b14ee5c5b 100644 +--- a/contrib/depends/hosts/darwin.mk ++++ b/contrib/depends/hosts/darwin.mk +@@ -1,4 +1,4 @@ +-OSX_MIN_VERSION=10.8 ++OSX_MIN_VERSION=10.14 + LD64_VERSION=609 + ifeq (aarch64, $(host_arch)) + CC_target=arm64-apple-$(host_os) +diff --git a/contrib/depends/toolchain.cmake.in b/contrib/depends/toolchain.cmake.in +index f118c754e..f26655d68 100644 +--- a/contrib/depends/toolchain.cmake.in ++++ b/contrib/depends/toolchain.cmake.in +@@ -94,7 +94,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + SET(BREW OFF) + SET(PORT OFF) + SET(CMAKE_OSX_SYSROOT "@prefix@/native/SDK/") +- SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.08") ++ SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.14") + SET(CMAKE_CXX_STANDARD 14) + SET(LLVM_ENABLE_PIC OFF) + SET(LLVM_ENABLE_PIE OFF) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 1b9761d70..0df9f9116 100644 --- a/external/CMakeLists.txt @@ -77,21 +110,28 @@ index 1b9761d70..0df9f9116 100644 \ No newline at end of file diff --git a/external/bc-ur b/external/bc-ur new file mode 160000 -index 000000000..e37d44418 +index 000000000..d82e7c753 --- /dev/null +++ b/external/bc-ur @@ -0,0 +1 @@ -+Subproject commit e37d44418bb9d4b222a81ec894d69f0a6d3730cc ++Subproject commit d82e7c753e710b8000706dc3383b498438795208 diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp -index a4b5f3ef0..7d004ea8c 100644 +index a4b5f3ef0..90675df11 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp -@@ -318,7 +318,7 @@ namespace hw { +@@ -313,12 +313,13 @@ namespace hw { + + /* ======================================================================= */ + /* LOCKER */ +- /* ======================================================================= */ ++ /* ======================================================================= */ + //automatic lock one more level on device ensuring the current thread is allowed to use it ++ #pragma message ("Warning AUTO_LOCK_CMD is intentionally left broken. This is yet to be fixed.") #define AUTO_LOCK_CMD() \ /* lock both mutexes without deadlock*/ \ - boost::lock(device_locker, command_locker); \ -+ boost::lock(command_locker, device_locker); \ ++ /* boost::lock(device_locker, command_locker); */ \ /* make sure both already-locked mutexes are unlocked at the end of scope */ \ boost::lock_guard lock1(device_locker, boost::adopt_lock); \ boost::lock_guard lock2(command_locker, boost::adopt_lock) @@ -849,5 +889,5 @@ index 0d9a9298f..539d5056c 100644 bool import_key_images(signed_tx_set & signed_tx, size_t offset=0, bool only_selected_transfers=false); crypto::public_key get_tx_pub_key_from_received_outs(const tools::wallet2::transfer_details &td) const; -- -2.25.1 +2.39.2