Skip to content

split shared action code#69

Merged
fbzli merged 8 commits into
feature/v2from
feature/composite-actions
Jun 9, 2026
Merged

split shared action code#69
fbzli merged 8 commits into
feature/v2from
feature/composite-actions

Conversation

@fbzli

@fbzli fbzli commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@fbzli fbzli requested a review from Copilot April 30, 2026 11:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors Android CI workflows by extracting common setup logic into reusable composite actions under .github/actions, reducing duplication across workflows.

Changes:

  • Replaced repeated checkout/JDK/zstd/Rust setup steps in multiple workflows with android-base-setup and android-app-setup composite actions.
  • Added ssh-setup composite action and migrated Alpaka workflow SSH preparation to it.
  • Split Play Store workflow into separate build and publish jobs with artifact handoff.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
.github/workflows/android_library_artifactory.yml Uses android-base-setup and adds an input to optionally set up Rust.
.github/workflows/android_gradle_task.yml Uses android-base-setup and allows optional PAT for checkout.
.github/workflows/android_code_quality.yml Uses android-app-setup and centralizes Gradle properties setup.
.github/workflows/android_build_store_upload.yml Uses android-app-setup, stages AAB as an artifact, adds a publish job.
.github/workflows/android_build_alpaka_upload.yml Uses android-app-setup and replaces inline SSH logic with ssh-setup.
.github/actions/ssh-setup/action.yml New composite action encapsulating SSH key + known_hosts setup.
.github/actions/android-base-setup/action.yml New composite action for shared Android CI base environment setup.
.github/actions/android-app-setup/action.yml New composite action building on base setup and exporting app/flavor/build outputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/android_code_quality.yml
Comment thread .github/actions/android-base-setup/action.yml Outdated
Comment thread .github/workflows/android_build_alpaka_upload.yml
Comment thread .github/actions/android-app-setup/action.yml
Comment thread .github/workflows/android_code_quality.yml
Comment thread .github/actions/android-base-setup/action.yml
Comment thread .github/actions/ssh-setup/action.yml Outdated
Comment thread .github/workflows/android_build_store_upload.yml
Comment thread .github/workflows/android_build_store_upload.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/android-base-setup/action.yml
Comment thread .github/workflows/android_build_store_upload.yml
Comment thread .github/actions/android-app-setup/action.yml Outdated
@fbzli fbzli force-pushed the feature/composite-actions branch from 2ea40b4 to da611f3 Compare May 1, 2026 15:04
@fbzli fbzli force-pushed the feature/composite-actions branch from da611f3 to 1a6a5d8 Compare May 1, 2026 15:12
@fbzli fbzli force-pushed the feature/composite-actions branch 3 times, most recently from 66f2f4b to 499caa1 Compare May 1, 2026 21:56
@fbzli fbzli force-pushed the feature/composite-actions branch from 499caa1 to 65e4d69 Compare May 1, 2026 22:22
@fbzli fbzli added the v2 The next generation action label May 14, 2026
shell: bash
run: sudo apt-get install -y zstd

- name: Setup Rust toolchain

@M-Wong M-Wong May 18, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Würds Sinn machen das Prebuild Script als Teil von dieser Action zu haben?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ja. Und ich habe mir überlegt, das Script nicht als Input zu übergeben, sondern ein fixes File im Client-Repo unter .github/scripts/prebuild.sh oder so zu haben, das ausgeführt wird, wenn's existiert. Evtl ginge auch eine Composite Action, aber das macht Probleme wenn sie nicht existiert, bzw. kann nicht optional sein, soviel ich weiss.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bin nicht so Fan davon wenn die Action auf ein hardcodiertes Pre-Build Script versucht zu gehen. Lieber das Script als File-Pfad als Input nehmen (statt wie jetzt den effektiven Script Code als Input)

Comment thread .github/actions/android-app-setup/action.yml
@fbzli fbzli merged commit b847353 into feature/v2 Jun 9, 2026
@fbzli fbzli deleted the feature/composite-actions branch June 9, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 The next generation action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants