ci: build android 32 bit apk #317

Manually merged
johnny9 merged 2 commits from android32 into main 2023-05-09 08:10:32 +00:00 AGit
johnny9 commented 2023-04-14 02:49:07 +00:00 (Migrated from github.com)

Windows
Intel macOS
Apple Silicon macOS
ARM64 Android
ARM32 Android

[![Windows](https://img.shields.io/badge/OS-Windows-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/unsecure_win_gui.zip?branch=pull/317) [![Intel macOS](https://img.shields.io/badge/OS-Intel%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/unsecure_mac_gui.zip?branch=pull/317) [![Apple Silicon macOS](https://img.shields.io/badge/OS-Apple%20Silicon%20macOS-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/unsecure_mac_arm64_gui.zip?branch=pull/317) [![ARM64 Android](https://img.shields.io/badge/OS-Android-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/unsecure_android_apk.zip?branch=pull/317) [![ARM32 Android](https://img.shields.io/badge/OS-Android%2032bit-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android32/unsecure_android_32bit_apk.zip?branch=pull/317)
jarolrod commented 2023-04-14 19:49:22 +00:00 (Migrated from github.com)

cc @hebasto

cc @hebasto
johnny9 commented 2023-04-14 21:43:20 +00:00 (Migrated from github.com)

We've had a few people already including myself with armeabi v7a devices. I guess they aren't as old as I thought. Some 2018/2019 devices

We've had a few people already including myself with armeabi v7a devices. I guess they aren't as old as I thought. Some 2018/2019 devices
hebasto (Migrated from github.com) reviewed 2023-04-16 09:02:08 +00:00
hebasto (Migrated from github.com) left a comment

Approach ACK 9afa997b10250884ffc6261d0babacc680c40f60.

Mind adding a new download link to .github/PULL_REQUEST_TEMPLATE.md and src/qml/README.md?

Approach ACK 9afa997b10250884ffc6261d0babacc680c40f60. Mind adding a new download link to `.github/PULL_REQUEST_TEMPLATE.md` and `src/qml/README.md`?
hebasto (Migrated from github.com) commented 2023-04-16 08:58:56 +00:00

The filename should be distinguishable from the one from the ARM64 Android APK CI task. Otherwise, they can override each other when the user downloads both of them.

The filename should be distinguishable from the one from the `ARM64 Android APK` CI task. Otherwise, they can override each other when the user downloads both of them.
hebasto (Migrated from github.com) commented 2023-04-16 08:48:47 +00:00

I'm not sure if the NDK_TOOLCHAIN_PATH is a good name for such a path element, because one could expect it is related to something like /home/hebasto/Android/Sdk/ndk/23.2.8568313/toolchains.

Maybe ANDROID_LIBCXX_DIR or NDK_LIBCXX_DIR?

I'm not sure if the `NDK_TOOLCHAIN_PATH` is a good name for such a path element, because one could expect it is related to something like `/home/hebasto/Android/Sdk/ndk/23.2.8568313/toolchains`. Maybe `ANDROID_LIBCXX_DIR` or `NDK_LIBCXX_DIR`?
johnny9 commented 2023-04-16 14:27:39 +00:00 (Migrated from github.com)

from 9afa997 to 14a60c

  • Add ARM32 Android link to README
  • Give android32 apk a unique filename
from[ 9afa997](https://github.com/bitcoin-core/gui-qml/commit/9afa997b10250884ffc6261d0babacc680c40f60) to [ 14a60c](https://github.com/bitcoin-core/gui-qml/commit/14a60cab5148f647f5be7c1af9c0aa083e088857) - Add ARM32 Android link to README - Give android32 apk a unique filename
johnny9 (Migrated from github.com) reviewed 2023-04-16 14:29:54 +00:00
johnny9 (Migrated from github.com) commented 2023-04-16 14:29:54 +00:00

I'll change it to NDK_LIBCXX_DIR.

I'll change it to NDK_LIBCXX_DIR.
johnny9 commented 2023-04-16 17:31:00 +00:00 (Migrated from github.com)

from 14a60ca to 6e92cf

  • Rename new configure variable to NDK_LIBCXX_DIR
from[ 14a60ca ](https://github.com/bitcoin-core/gui-qml/commit/14a60cab5148f647f5be7c1af9c0aa083e088857)to[ 6e92cf](https://github.com/bitcoin-core/gui-qml/commit/6e92cf3146f2094f94a2e59e2c1e582ffd0ea6e2) - Rename new configure variable to NDK_LIBCXX_DIR
johnny9 (Migrated from github.com) reviewed 2023-04-16 18:00:16 +00:00
johnny9 (Migrated from github.com) commented 2023-04-16 18:00:16 +00:00

@hebasto will this change the url for the .zip to unsecure_android_apk_32bit.zip?

@hebasto will this change the url for the .zip to unsecure_android_apk_32bit.zip?
hebasto (Migrated from github.com) reviewed 2023-04-16 18:49:30 +00:00
hebasto (Migrated from github.com) commented 2023-04-16 18:49:30 +00:00

@hebasto will this change the url for the .zip to unsecure_android_apk_32bit.zip?

It does. See https://cirrus-ci.org/guide/writing-tasks/#latest-build-artifacts.

We use the following URL format:

https://api.cirrus-ci.com/v1/artifact/github/<USER OR ORGANIZATION>/<REPOSITORY>/<TASK NAME OR ALIAS>/<ARTIFACTS_NAME>.zip
> @hebasto will this change the url for the .zip to unsecure_android_apk_32bit.zip? It does. See https://cirrus-ci.org/guide/writing-tasks/#latest-build-artifacts. We use the following URL format: ``` https://api.cirrus-ci.com/v1/artifact/github/<USER OR ORGANIZATION>/<REPOSITORY>/<TASK NAME OR ALIAS>/<ARTIFACTS_NAME>.zip ```
hebasto (Migrated from github.com) reviewed 2023-04-16 18:54:30 +00:00
hebasto (Migrated from github.com) left a comment

Approach ACK 0face6536d90ea3f4de3019bf60ae7300dee546f.

Rename new configure variable to NDK_LIBCXX_DIR

Please move this change into the first commit.

Add ARM32 Android link to README

A similar change to .github/PULL_REQUEST_TEMPLATE.md?

Approach ACK 0face6536d90ea3f4de3019bf60ae7300dee546f. > Rename new configure variable to NDK_LIBCXX_DIR Please move this change into the first commit. > Add ARM32 Android link to README A similar [change](https://github.com/bitcoin-core/gui-qml/pull/317#pullrequestreview-1386774712) to `.github/PULL_REQUEST_TEMPLATE.md`?
hebasto commented 2023-04-16 19:32:25 +00:00 (Migrated from github.com)
CI is green. An artifact is available to download at https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android32/unsecure_android_apk_32bit.zip?branch=pull/317.
johnny9 commented 2023-04-16 23:17:52 +00:00 (Migrated from github.com)

from 0face65 to e11b561

  • Put change to LIBCXX configure variable to the right commit
  • Added ARM32 Android url to pull request TEMPLATE
from[ 0face65 ](https://github.com/bitcoin-core/gui-qml/commit/0face6536d90ea3f4de3019bf60ae7300dee546f)to[ e11b561](https://github.com/bitcoin-core/gui-qml/commit/e11b561d56b447254b813e9e3193fa5d8114dac6) - Put change to LIBCXX configure variable to the right commit - Added ARM32 Android url to pull request TEMPLATE
jarolrod commented 2023-04-17 04:12:41 +00:00 (Migrated from github.com)

concept ack, I don't currently have a 32 bit android device so cannot test

concept ack, I don't currently have a 32 bit android device so cannot test
hebasto (Migrated from github.com) reviewed 2023-04-17 10:08:38 +00:00
hebasto (Migrated from github.com) left a comment

The artifact name and urls are not inlined now. Mind updating urls or an artifact name s/unsecure_android_apk_32bit_artifacts/unsecure_android_32bit_apk_artifacts/?

The artifact name and urls are not inlined now. Mind updating urls or an artifact name s/`unsecure_android_apk_32bit_artifacts`/`unsecure_android_32bit_apk_artifacts`/?
hebasto (Migrated from github.com) commented 2023-04-17 10:02:36 +00:00

https://github.com/bitcoin-core/gui-qml/pull/317/files#r1167988459:

[![ARM32 Android](https://img.shields.io/badge/OS-Android%2032bit-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android32/unsecure_android_apk_32bit.zip?branch=pull/<PR>)
https://github.com/bitcoin-core/gui-qml/pull/317/files#r1167988459: ```suggestion [![ARM32 Android](https://img.shields.io/badge/OS-Android%2032bit-green)](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android32/unsecure_android_apk_32bit.zip?branch=pull/<PR>) ```
0xB10C commented 2023-04-17 16:43:53 +00:00 (Migrated from github.com)

CI is green. An artifact is available to download at https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android32/unsecure_android_apk_32bit.zip?branch=pull/317.

Synced signet on a OnePlus One (2014, 3GB RAM, 4x 2.45 GHz Snapdragon 801) with this APK in about an hour.

> CI is green. An artifact is available to download at https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android32/unsecure_android_apk_32bit.zip?branch=pull/317. Synced signet on a OnePlus One (2014, 3GB RAM, 4x 2.45 GHz Snapdragon 801) with this APK in about an hour.
jarolrod (Migrated from github.com) approved these changes 2023-04-21 00:13:54 +00:00
jarolrod (Migrated from github.com) left a comment

ACK e11b561d56b447254b813e9e3193fa5d8114dac6

I did not test this and don't currently have a way to test. But we have confirmation of two users being able to install and run, and one user being able to sync.

edit: cannot grab android 32 bit link from pr description

~~ACK e11b561d56b447254b813e9e3193fa5d8114dac6~~ I did not test this and don't currently have a way to test. But we have confirmation of two users being able to install and run, and one user being able to sync. edit: cannot grab android 32 bit link from pr description
jarolrod (Migrated from github.com) reviewed 2023-04-22 17:51:43 +00:00
jarolrod (Migrated from github.com) commented 2023-04-22 17:51:43 +00:00

@johnny9 this should fix the issue of not being able to grab the link from the PR description

@johnny9 this should fix the issue of not being able to grab the link from the PR description
johnny9 commented 2023-04-23 03:28:39 +00:00 (Migrated from github.com)

from e11b561 to 3b50687

  • Changed the cirrus task artifact property to unsecure_android_32bit_apk_artifacts to match the filename of the artifact and match the expected url
from e11b561 to 3b50687 - Changed the cirrus task artifact property to unsecure_android_32bit_apk_artifacts to match the filename of the artifact and match the expected url
johnny9 commented 2023-05-08 00:14:47 +00:00 (Migrated from github.com)

from 3b50687 to ec8e89

  • rebased with main
from[ 3b50687 ](https://github.com/bitcoin-core/gui-qml/commit/3b5068719066b1a3d42207ac4493c51b53e37543)to[ ec8e89](https://github.com/bitcoin-core/gui-qml/commit/ec8e8969f6749ab68f72a9db841212754c78077a) - rebased with main
hebasto commented 2023-05-08 17:11:30 +00:00 (Migrated from github.com)

@johnny9

from 3b50687 to ec8e89

  • rebased with main

Thanks for rebasing!

Although another diff is required after rebasing:

--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -399,7 +399,9 @@ task:
   alias: android32
   << : *CONTAINER_DEPENDS_TEMPLATE
   container:
-    image: ubuntu:jammy
+      CI_IMAGE_NAME_TAG: ubuntu:jammy
+      FILE_ENV: "./ci/test/00_setup_env_android32.sh"
+  << : *CREDITS_TEMPLATE
   android_sdk_cache:
     folder: "depends/SDKs/android"
     fingerprint_key: "ANDROID_API_LEVEL=28 ANDROID_BUILD_TOOLS_VERSION=28.0.3 ANDROID_NDK_VERSION=23.2.8568313"
@@ -409,7 +411,6 @@ task:
   << : *MAIN_TEMPLATE
   env:
     << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
-    FILE_ENV: "./ci/test/00_setup_env_android32.sh"
   copy_artifacts_script:
     - cp src/qt/android/build/outputs/apk/debug/android-debug.apk ${CIRRUS_WORKING_DIR}/unsecure_android_32bit.apk
   unsecure_android_32bit_apk_artifacts:
@johnny9 > from[ 3b50687 ](https://github.com/bitcoin-core/gui-qml/commit/3b5068719066b1a3d42207ac4493c51b53e37543)to[ ec8e89](https://github.com/bitcoin-core/gui-qml/commit/ec8e8969f6749ab68f72a9db841212754c78077a) > > * rebased with main Thanks for rebasing! Although another diff is required after rebasing: ```diff --- a/.cirrus.yml +++ b/.cirrus.yml @@ -399,7 +399,9 @@ task: alias: android32 << : *CONTAINER_DEPENDS_TEMPLATE container: - image: ubuntu:jammy + CI_IMAGE_NAME_TAG: ubuntu:jammy + FILE_ENV: "./ci/test/00_setup_env_android32.sh" + << : *CREDITS_TEMPLATE android_sdk_cache: folder: "depends/SDKs/android" fingerprint_key: "ANDROID_API_LEVEL=28 ANDROID_BUILD_TOOLS_VERSION=28.0.3 ANDROID_NDK_VERSION=23.2.8568313" @@ -409,7 +411,6 @@ task: << : *MAIN_TEMPLATE env: << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV - FILE_ENV: "./ci/test/00_setup_env_android32.sh" copy_artifacts_script: - cp src/qt/android/build/outputs/apk/debug/android-debug.apk ${CIRRUS_WORKING_DIR}/unsecure_android_32bit.apk unsecure_android_32bit_apk_artifacts: ```
hebasto (Migrated from github.com) approved these changes 2023-05-09 08:02:50 +00:00
hebasto (Migrated from github.com) left a comment
ACK 28ab1ee7e5d158804d3c14b1b3e2a1fe0241c115
Sign in to join this conversation.
No description provided.