summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-06-27 07:40:32 +0200
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-06-27 07:40:32 +0200
commitb2ac946c43a8fb5447e7a2b70d04e24f39702bd9 (patch)
tree62a5ced0d858c1845b1d275c90e3a1487eaa8f34
parent1829cb8feb46f3f24b5d332c9f74804a255faa10 (diff)
remove woodpecker config
static libc++ on android
-rw-r--r--.woodpecker/linux.yaml129
-rwxr-xr-xbuild_single.sh11
-rw-r--r--monero_libwallet2_api_c/CMakeLists.txt8
3 files changed, 7 insertions, 141 deletions
diff --git a/.woodpecker/linux.yaml b/.woodpecker/linux.yaml
deleted file mode 100644
index fc2fd67..0000000
--- a/.woodpecker/linux.yaml
+++ /dev/null
@@ -1,129 +0,0 @@
-clone:
- git:
- image: woodpeckerci/plugin-git
- settings:
- partial: false
- recursive: true
-
-labels:
- platform: linux/amd64
-
-when:
- - event: tag
-
-matrix:
- repo:
- - monero
- - wownero
-
-steps:
- - name: patch ${repo} and cache depends
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - cd ${repo} && git submodule update --init --force && cd ..
- - git config --global user.email "ci@mrcyjanek.net"
- - git config --global user.name "CI mrcyjanek.net"
- - ./apply_patches.sh ${repo}
- - cd ${repo}/contrib/depends
- - for i in sources built; do cp "/root/.cache/${repo}/$i" . -r || true; done
- - make download
- volumes:
- - /opt/cache/monero_c/dotcache:/root/.cache
- - name: x86_64-apple-darwin11
- image: git.mrcyjanek.net/mrcyjanek/debian:bookworm
- commands:
- - apt update
- - apt install -y gperf libtinfo5
- - ./build_single.sh ${repo} x86_64-apple-darwin11 -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: aarch64-apple-darwin11
- image: git.mrcyjanek.net/mrcyjanek/debian:bookworm
- commands:
- - apt update
- - apt install -y gperf libtinfo5
- - ./build_single.sh ${repo} aarch64-apple-darwin11 -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: x86_64-w64-mingw32
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gperf libtinfo5
- - ./build_single.sh ${repo} x86_64-w64-mingw32 -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: i686-w64-mingw32
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache gcc-mingw-w64-i686 g++-mingw-w64-i686 gperf libtinfo5
- - ./build_single.sh ${repo} i686-w64-mingw32 -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: x86_64-linux-gnu
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache gcc g++ gperf
- - ./build_single.sh ${repo} x86_64-linux-gnu -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: i686-linux-gnu
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache gcc-i686-linux-gnu g++-i686-linux-gnu gperf
- - ./build_single.sh ${repo} i686-linux-gnu -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: aarch64-linux-gnu
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache gcc-aarch64-linux-gnu g++-aarch64-linux-gnu gperf
- - ./build_single.sh ${repo} aarch64-linux-gnu -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: x86_64-linux-android
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache libtinfo5 gperf
- - ./build_single.sh ${repo} x86_64-linux-android -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: aarch64-linux-android
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache libtinfo5 gperf
- - ./build_single.sh ${repo} aarch64-linux-android -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: arm-linux-androideabi
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - apt update
- - apt install -y ccache libtinfo5 gperf
- - ./build_single.sh ${repo} arm-linux-androideabi -j$(nproc)
- volumes:
- - /opt/cache/monero_c/dotccache:/root/.ccache
- - name: cache depends
- image: git.mrcyjanek.net/mrcyjanek/debian:buster
- commands:
- - cd ${repo}/contrib/depends
- - mkdir -p /root/.cache/${repo} || true
- - for i in sources built; do cp "$i" "/root/.cache/${repo}" -r || true; done
- volumes:
- - /opt/cache/monero_c/dotcache:/root/.cache
- - name: upload artifact
- image: git.mrcyjanek.net/mrcyjanek/debian:bookworm
- commands:
- - rm -rf ~/.ssh || true
- - mkdir -p ~/.ssh
- - echo "$${SSH_PRIVKEY}" > ~/.ssh/id_rsa
- - chmod 700 ~/.ssh
- - chmod 600 ~/.ssh/id_rsa
- - rsync --mkpath -e "ssh -o StrictHostKeyChecking=no" -raz release/* $${SSH_HOST}:"$${SSH_BASE_PATH}/$(git describe --tags)/"
- secrets: [ ssh_privkey, ssh_host, ssh_base_path ] \ No newline at end of file
diff --git a/build_single.sh b/build_single.sh
index bded7ce..31a788d 100755
--- a/build_single.sh
+++ b/build_single.sh
@@ -377,15 +377,4 @@ pushd release/$repo
rm ${HOST_ABI}_libssp-0.dll.xz || true
xz -e ${HOST_ABI}_libssp-0.dll
fi
- if [[ "$HOST_ABI" == "x86_64-linux-android" || "$HOST_ABI" == "i686-linux-android" || "$HOST_ABI" == "aarch64-linux-android" || "$HOST_ABI" == "armv7a-linux-androideabi" ]];
- then
- SYSROOT_TRIPLET=${HOST_ABI}
- if [[ "${HOST_ABI}" == "armv7a-linux-androideabi" ]];
- then
- SYSROOT_TRIPLET="arm-linux-androideabi"
- fi
- cp ../../$repo/contrib/depends/${HOST_ABI}/native/sysroot/usr/lib/${SYSROOT_TRIPLET}/libc++_shared.so ${HOST_ABI}_libc++_shared.so
- rm ${HOST_ABI}_libc++_shared.so.xz || true
- xz -e ${HOST_ABI}_libc++_shared.so
- fi
popd
diff --git a/monero_libwallet2_api_c/CMakeLists.txt b/monero_libwallet2_api_c/CMakeLists.txt
index 89bf119..f80b23e 100644
--- a/monero_libwallet2_api_c/CMakeLists.txt
+++ b/monero_libwallet2_api_c/CMakeLists.txt
@@ -328,7 +328,13 @@ elseif(${HOST_ABI} STREQUAL "host-apple-ios")
set(EXTRA_LIBS_APPLE "-framework IOKit" "-framework CoreFoundation" iconv )
endif()
-# target_compile_options(wallet2_api_c PRIVATE -static-libstdc++)
+if (${HOST_ABI} STREQUAL "x86_64-linux-android" OR
+ ${HOST_ABI} STREQUAL "i686-linux-android" OR
+ ${HOST_ABI} STREQUAL "aarch64-linux-android" OR
+ ${HOST_ABI} STREQUAL "armv7a-linux-androideabi")
+ add_link_options(wallet2_api_c PRIVATE -static-libstdc++)
+endif()
+
if(${HOST_ABI} STREQUAL "x86_64-w64-mingw32" OR ${HOST_ABI} STREQUAL "i686-w64-mingw32")
set_target_properties(wallet2_api_c PROPERTIES SUFFIX ".dll")