mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
ci: use prebuilt monero_c on CI builds (#2569)
This commit is contained in:
@@ -9,7 +9,7 @@ jobs:
|
|||||||
PR_test_build:
|
PR_test_build:
|
||||||
runs-on: linux-amd64
|
runs-on: linux-amd64
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly
|
image: ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly
|
||||||
env:
|
env:
|
||||||
STORE_PASS: test@cake_wallet
|
STORE_PASS: test@cake_wallet
|
||||||
KEY_PASS: test@cake_wallet
|
KEY_PASS: test@cake_wallet
|
||||||
@@ -179,34 +179,6 @@ jobs:
|
|||||||
echo "const kryptonimApiKey = '${{ secrets.KRYPTONIM_API_KEY }}';" >> lib/.secrets.g.dart
|
echo "const kryptonimApiKey = '${{ secrets.KRYPTONIM_API_KEY }}';" >> lib/.secrets.g.dart
|
||||||
echo "const walletGroupSalt = '${{ secrets.WALLET_GROUP_SALT }}';" >> lib/.secrets.g.dart
|
echo "const walletGroupSalt = '${{ secrets.WALLET_GROUP_SALT }}';" >> lib/.secrets.g.dart
|
||||||
|
|
||||||
- name: prepare monero_c and cache
|
|
||||||
run: |
|
|
||||||
export MONEROC_HASH=$(cat scripts/prepare_moneroc.sh | grep 'git checkout' | xargs | awk '{ print $3 }')
|
|
||||||
echo MONEROC_HASH=$MONEROC_HASH >> /etc/environment
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/moneroc-$MONEROC_HASH/monero_c"
|
|
||||||
pushd scripts
|
|
||||||
ln -s "$MONEROC_CACHE_DIR_ROOT/moneroc-$MONEROC_HASH/monero_c"
|
|
||||||
./prepare_moneroc.sh
|
|
||||||
popd
|
|
||||||
pushd scripts/monero_c
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/built" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/built" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/built" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/sources" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/sources" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/sources" || true
|
|
||||||
|
|
||||||
rm -rf "$PWD/contrib/depends/built" "$PWD/monero/contrib/depends/built" "$PWD/wownero/contrib/depends/built"
|
|
||||||
rm -rf "$PWD/contrib/depends/sources" "$PWD/monero/contrib/depends/sources" "$PWD/wownero/contrib/depends/sources"
|
|
||||||
mkdir -p contrib/depends || true
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/built" "$PWD/contrib/depends/built"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/built" "$PWD/monero/contrib/depends/built"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/built" "$PWD/wownero/contrib/depends/built"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/sources" "$PWD/contrib/depends/sources"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/sources" "$PWD/monero/contrib/depends/sources"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/sources" "$PWD/wownero/contrib/depends/sources"
|
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Generate KeyStore
|
- name: Generate KeyStore
|
||||||
run: |
|
run: |
|
||||||
pushd /opt/generic_cache
|
pushd /opt/generic_cache
|
||||||
@@ -246,9 +218,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Build monero_c
|
- name: Build monero_c
|
||||||
run: |
|
run: |
|
||||||
pushd scripts/android/
|
mkdir -p scripts/monero_c
|
||||||
source ./app_env.sh cakewallet
|
pushd scripts/monero_c
|
||||||
./build_monero_all.sh
|
wget https://github.com/MrCyjaneK/monero_c/releases/download/v0.18.4.0-RC9/release-bundle.zip
|
||||||
|
unzip release-bundle.zip
|
||||||
|
rm release-bundle.zip
|
||||||
|
unxz -fv release/*/*.xz
|
||||||
popd
|
popd
|
||||||
|
|
||||||
- name: Build Bitbox Flutter
|
- name: Build Bitbox Flutter
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ jobs:
|
|||||||
PR_test_build:
|
PR_test_build:
|
||||||
runs-on: linux-amd64
|
runs-on: linux-amd64
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly
|
image: ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly
|
||||||
env:
|
env:
|
||||||
STORE_PASS: test@cake_wallet
|
STORE_PASS: test@cake_wallet
|
||||||
KEY_PASS: test@cake_wallet
|
KEY_PASS: test@cake_wallet
|
||||||
@@ -175,34 +175,6 @@ jobs:
|
|||||||
echo "const kryptonimApiKey = '${{ secrets.KRYPTONIM_API_KEY }}';" >> lib/.secrets.g.dart
|
echo "const kryptonimApiKey = '${{ secrets.KRYPTONIM_API_KEY }}';" >> lib/.secrets.g.dart
|
||||||
echo "const walletGroupSalt = '${{ secrets.WALLET_GROUP_SALT }}';" >> lib/.secrets.g.dart
|
echo "const walletGroupSalt = '${{ secrets.WALLET_GROUP_SALT }}';" >> lib/.secrets.g.dart
|
||||||
|
|
||||||
- name: prepare monero_c and cache
|
|
||||||
run: |
|
|
||||||
export MONEROC_HASH=$(cat scripts/prepare_moneroc.sh | grep 'git checkout' | xargs | awk '{ print $3 }')
|
|
||||||
echo MONEROC_HASH=$MONEROC_HASH >> /etc/environment
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/moneroc-$MONEROC_HASH/monero_c"
|
|
||||||
pushd scripts
|
|
||||||
ln -s "$MONEROC_CACHE_DIR_ROOT/moneroc-$MONEROC_HASH/monero_c"
|
|
||||||
./prepare_moneroc.sh
|
|
||||||
popd
|
|
||||||
pushd scripts/monero_c
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/built" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/built" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/built" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/sources" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/sources" || true
|
|
||||||
mkdir -p "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/sources" || true
|
|
||||||
|
|
||||||
rm -rf "$PWD/contrib/depends/built" "$PWD/monero/contrib/depends/built" "$PWD/wownero/contrib/depends/built"
|
|
||||||
rm -rf "$PWD/contrib/depends/sources" "$PWD/monero/contrib/depends/sources" "$PWD/wownero/contrib/depends/sources"
|
|
||||||
mkdir -p contrib/depends || true
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/built" "$PWD/contrib/depends/built"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/built" "$PWD/monero/contrib/depends/built"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/built" "$PWD/wownero/contrib/depends/built"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/contrib/depends/sources" "$PWD/contrib/depends/sources"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/monero/contrib/depends/sources" "$PWD/monero/contrib/depends/sources"
|
|
||||||
ln -sf "$MONEROC_CACHE_DIR_ROOT/_cache/wownero/contrib/depends/sources" "$PWD/wownero/contrib/depends/sources"
|
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Fetch prebuilt Torch
|
- name: Fetch prebuilt Torch
|
||||||
run: |
|
run: |
|
||||||
set -x -e
|
set -x -e
|
||||||
@@ -223,9 +195,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Build monero_c
|
- name: Build monero_c
|
||||||
run: |
|
run: |
|
||||||
pushd scripts/linux/
|
mkdir -p scripts/monero_c
|
||||||
source ./app_env.sh cakewallet
|
pushd scripts/monero_c
|
||||||
./build_monero_all.sh
|
wget https://github.com/MrCyjaneK/monero_c/releases/download/v0.18.4.0-RC9/release-bundle.zip
|
||||||
|
unzip release-bundle.zip
|
||||||
|
rm release-bundle.zip
|
||||||
|
unxz -fv release/*/*.xz
|
||||||
popd
|
popd
|
||||||
|
|
||||||
- name: Build Bitbox Flutter
|
- name: Build Bitbox Flutter
|
||||||
|
|||||||
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
# docker buildx build --push --pull --platform linux/amd64,linux/arm64 . -f Dockerfile -t ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly
|
# docker buildx build --push --pull --platform linux/amd64,linux/arm64 . -f Dockerfile -t ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly
|
||||||
|
|
||||||
# Heavily inspired by cirrusci images
|
# Heavily inspired by cirrusci images
|
||||||
# https://github.com/cirruslabs/docker-images-android/blob/master/sdk/tools/Dockerfile
|
# https://github.com/cirruslabs/docker-images-android/blob/master/sdk/tools/Dockerfile
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
# https://github.com/cirruslabs/docker-images-android/blob/master/sdk/34-ndk/Dockerfile
|
# https://github.com/cirruslabs/docker-images-android/blob/master/sdk/34-ndk/Dockerfile
|
||||||
# https://github.com/cirruslabs/docker-images-flutter/blob/master/sdk/Dockerfile
|
# https://github.com/cirruslabs/docker-images-flutter/blob/master/sdk/Dockerfile
|
||||||
|
|
||||||
FROM docker.io/debian:12
|
FROM docker.io/debian:13
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source=https://github.com/cake-tech/cake_wallet
|
LABEL org.opencontainers.image.source=https://github.com/cake-tech/cake_wallet
|
||||||
|
|
||||||
@@ -46,9 +46,9 @@ RUN set -o xtrace \
|
|||||||
&& cd /opt \
|
&& cd /opt \
|
||||||
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
||||||
# Core dependencies
|
# Core dependencies
|
||||||
bc build-essential curl default-jdk git jq lcov libglu1-mesa libpulse0 libsqlite3-dev libstdc++6 locales openssh-client ruby-bundler ruby-full software-properties-common sudo unzip wget zip \
|
bc build-essential curl default-jdk git jq lcov libglu1-mesa libpulse0 libsqlite3-dev libstdc++6 locales openssh-client ruby-bundler ruby-full sudo unzip wget zip \
|
||||||
# for x86 emulators
|
# for x86 emulators
|
||||||
libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libnss3-dev libsqlite3-dev libxtst6 libxss1 lftp sqlite3 xxd \
|
libatk-bridge2.0-0 libgdk-pixbuf-xlib-2.0-0 libgtk-3-0 libnspr4 libnss3-dev libsqlite3-dev libxtst6 libxss1 lftp sqlite3 xxd \
|
||||||
# Linux desktop dependencies
|
# Linux desktop dependencies
|
||||||
clang cmake libgtk-3-dev ninja-build pkg-config libsecret-1-0 libsecret-1-dev gir1.2-secret-1 \
|
clang cmake libgtk-3-dev ninja-build pkg-config libsecret-1-0 libsecret-1-dev gir1.2-secret-1 \
|
||||||
# monero_c dependencies
|
# monero_c dependencies
|
||||||
|
|||||||
@@ -573,8 +573,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "impls/monero.dart"
|
path: "impls/monero.dart"
|
||||||
ref: "07f7a7f80735130ebfa5842ddee5139076408c0d"
|
ref: "411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29"
|
||||||
resolved-ref: "07f7a7f80735130ebfa5842ddee5139076408c0d"
|
resolved-ref: "411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29"
|
||||||
url: "https://github.com/mrcyjanek/monero_c"
|
url: "https://github.com/mrcyjanek/monero_c"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ dependencies:
|
|||||||
monero:
|
monero:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/mrcyjanek/monero_c
|
url: https://github.com/mrcyjanek/monero_c
|
||||||
ref: 07f7a7f80735130ebfa5842ddee5139076408c0d
|
ref: 411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29
|
||||||
path: impls/monero.dart
|
path: impls/monero.dart
|
||||||
mutex: ^3.1.0
|
mutex: ^3.1.0
|
||||||
ledger_flutter_plus: ^1.4.1
|
ledger_flutter_plus: ^1.4.1
|
||||||
|
|||||||
@@ -493,8 +493,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "impls/monero.dart"
|
path: "impls/monero.dart"
|
||||||
ref: "07f7a7f80735130ebfa5842ddee5139076408c0d"
|
ref: "411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29"
|
||||||
resolved-ref: "07f7a7f80735130ebfa5842ddee5139076408c0d"
|
resolved-ref: "411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29"
|
||||||
url: "https://github.com/mrcyjanek/monero_c"
|
url: "https://github.com/mrcyjanek/monero_c"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ dependencies:
|
|||||||
monero:
|
monero:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/mrcyjanek/monero_c
|
url: https://github.com/mrcyjanek/monero_c
|
||||||
ref: 07f7a7f80735130ebfa5842ddee5139076408c0d # monero_c hash
|
ref: 411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29 # monero_c hash
|
||||||
path: impls/monero.dart
|
path: impls/monero.dart
|
||||||
mutex: ^3.1.0
|
mutex: ^3.1.0
|
||||||
|
|
||||||
|
|||||||
@@ -498,8 +498,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "impls/monero.dart"
|
path: "impls/monero.dart"
|
||||||
ref: "07f7a7f80735130ebfa5842ddee5139076408c0d"
|
ref: "411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29"
|
||||||
resolved-ref: "07f7a7f80735130ebfa5842ddee5139076408c0d"
|
resolved-ref: "411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29"
|
||||||
url: "https://github.com/mrcyjanek/monero_c"
|
url: "https://github.com/mrcyjanek/monero_c"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ dependencies:
|
|||||||
monero:
|
monero:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/mrcyjanek/monero_c
|
url: https://github.com/mrcyjanek/monero_c
|
||||||
ref: 07f7a7f80735130ebfa5842ddee5139076408c0d # monero_c hash
|
ref: 411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29 # monero_c hash
|
||||||
path: impls/monero.dart
|
path: impls/monero.dart
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ In order to build the latest version of Cake Wallet, simply run the following:
|
|||||||
git clone --branch main https://github.com/cake-tech/cake_wallet.git
|
git clone --branch main https://github.com/cake-tech/cake_wallet.git
|
||||||
# NOTE: Replace `main` with the latest release tag available at https://github.com/cake-tech/cake_wallet/releases/latest.
|
# NOTE: Replace `main` with the latest release tag available at https://github.com/cake-tech/cake_wallet/releases/latest.
|
||||||
cd cake_wallet
|
cd cake_wallet
|
||||||
# docker build -t ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly . # Uncomment to build the docker image yourself instead of pulling it from the registry
|
# docker build -t ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly . # Uncomment to build the docker image yourself instead of pulling it from the registry
|
||||||
docker run -v$(pwd):$(pwd) -w $(pwd) -i --rm ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly bash -x << EOF
|
docker run -v$(pwd):$(pwd) -w $(pwd) -i --rm ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly bash -x << EOF
|
||||||
set -x -e
|
set -x -e
|
||||||
pushd scripts/android
|
pushd scripts/android
|
||||||
./build_torch.sh
|
./build_torch.sh
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ In order to build the latest version of Cake Wallet, simply run the following:
|
|||||||
git clone --branch main https://github.com/cake-tech/cake_wallet.git
|
git clone --branch main https://github.com/cake-tech/cake_wallet.git
|
||||||
# NOTE: Replace `main` with the latest release tag available at https://github.com/cake-tech/cake_wallet/releases/latest.
|
# NOTE: Replace `main` with the latest release tag available at https://github.com/cake-tech/cake_wallet/releases/latest.
|
||||||
cd cake_wallet
|
cd cake_wallet
|
||||||
# docker build -t ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly . # Uncomment to build the docker image yourself instead of pulling it from the registry
|
# docker build -t ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly . # Uncomment to build the docker image yourself instead of pulling it from the registry
|
||||||
docker run --privileged -v$(pwd):$(pwd) -w $(pwd) -i --rm ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly bash -x << EOF
|
docker run --privileged -v$(pwd):$(pwd) -w $(pwd) -i --rm ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly bash -x << EOF
|
||||||
set -x -e
|
set -x -e
|
||||||
pushd scripts
|
pushd scripts
|
||||||
./gen_android_manifest.sh
|
./gen_android_manifest.sh
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ cd "$SCRIPT_DIR"
|
|||||||
BUILD_AMD64=false
|
BUILD_AMD64=false
|
||||||
BUILD_ARM64=false
|
BUILD_ARM64=false
|
||||||
APP_TYPE="cakewallet"
|
APP_TYPE="cakewallet"
|
||||||
DOCKER_IMAGE="ghcr.io/cake-tech/cake_wallet:debian12-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly"
|
DOCKER_IMAGE="ghcr.io/cake-tech/cake_wallet:debian13-flutter3.32.0-ndkr28-go1.24.1-ruststablenightly"
|
||||||
|
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
for arg in "$@"
|
for arg in "$@"
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ then
|
|||||||
rm -rf monero_c
|
rm -rf monero_c
|
||||||
git clone https://github.com/mrcyjanek/monero_c --branch master monero_c
|
git clone https://github.com/mrcyjanek/monero_c --branch master monero_c
|
||||||
cd monero_c
|
cd monero_c
|
||||||
git checkout 07f7a7f80735130ebfa5842ddee5139076408c0d
|
# NOTE: Make sure to update monero_c prebuilds link in workflow files
|
||||||
|
# https://github.com/MrCyjaneK/monero_c/releases/download/v0.18.4.0-RC9/release-bundle.zip
|
||||||
|
git checkout 411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git submodule update --init --force --recursive
|
git submodule update --init --force --recursive
|
||||||
./apply_patches.sh monero
|
./apply_patches.sh monero
|
||||||
|
|||||||
Reference in New Issue
Block a user