Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci, gha: Build Android artifacts #368

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Oct 25, 2023

This PR reintroduces downloadable binary artifacts for macOS and Windows as it was on now decommissioned Cirrus CI.

Unfortunately, the implementation is suboptimal due to various reasons. For example,

  • A container is used as building the qt package in depends fails using the default Android installation in Ubuntu image.
  • Caching, both for depends and ccache, does not work as expected within a container.

The artifacts are available for downloading from https://github.com/bitcoin-core/gui-qml/actions/workflows/artifacts.yml.

Also refer to GitHub documentation: https://docs.github.com/en/actions/managing-workflow-runs/downloading-workflow-artifacts.

Links for build artifacts:

Android ARM 32-bit APK
Android ARM 64-bit APK
Android x86-64 APK
macOS Apple Silicon
macOS Intel
Windows

Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK, want to also edit the pr template here?

- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.host.artifact }}
path: src/qt/android/build/outputs/apk/debug/android-debug.apk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to call this debug? config isn't being built as debug here.

Is it possible to give each android build a unique name? like android-arm64.apk, etc...

Copy link
Member Author

@hebasto hebasto Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to call this debug?

It is named by the build system.

config isn't being built as debug here.

The other artifact is "unsigned", btw.

Is it possible to give each android build a unique name? like android-arm64.apk, etc...

Artifacts already have unique names. Do you think a name collision here is a real concern for users of those artifacts?

@hebasto
Copy link
Member Author

hebasto commented Oct 26, 2023

want to also edit the pr template here?

Maybe someone else could adjust all related docs, including the pr template?

Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 8d3533a

Improvements to this and documentation mixups can be done in follow-ups. Tested that the arm64 android binary works.

@hebasto hebasto merged commit 6caffba into bitcoin-core:main Oct 27, 2023
9 checks passed
@hebasto hebasto deleted the 231025-android branch October 28, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants