Skip to content

EASのビルド設定を廃止し、GitHub ActionsでAndroidビルドを実行するワークフローに置き換え - #6446

Merged
TinyKitten merged 2 commits into
devfrom
chore/android-build-workflow
Jul 19, 2026
Merged

TinyKitten merged 2 commits into
devfrom
chore/android-build-workflow

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jul 17, 2026 •

Copy link
Copy Markdown
Member

概要

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • EAS のビルド設定(eas.json、.eas/workflows/create-development-builds.yml、.eas/workflows/create-production-builds.yml)を削除
  • GitHub Actions ワークフロー .github/workflows/build_android.yml を追加
    • canary ブランチへの push で devRelease、master ブランチへの push で prodRelease を自動ビルド
    • workflow_dispatch でビルドバリアントを選択して手動実行も可能
    • 署名鍵・.env.local・Sentry properties は GitHub Secrets(RELEASE_KEYSTORE / KEYSTORE_* / DOTENV_LOCAL / DOTENV_LOCAL_PRODUCTION / SENTRY_PROPERTIES_BASE64)から復元
    • private なフォントサブモジュールは FONTS_SSH_KEY で checkout
    • 生成した AAB を Actions artifact としてアップロード

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

省略: src/ 配下などアプリ本体のコード変更が無いため

関連Issue

スクリーンショット(任意)

Summary by CodeRabbit

  • 新機能
    • Androidアプリの開発版・本番版を、自動(ブランチ更新)または手動実行でビルドできるワークフローを追加しました。
    • ビルド成果物(AAB)を取得できるようになりました。
  • 変更
    • EASのビルド/ストア提出に関する既存設定・ワークフローが削除され、自動提出などの運用が無効化されました。

@TinyKitten TinyKitten self-assigned this Jul 17, 2026
@github-actions github-actions Bot added the ci/cd label Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 65ea7fe0-539d-4106-909c-5e733577f0aa

📥 Commits

Reviewing files that changed from the base of the PR and between 07d9fe4 and 5caa672.

📒 Files selected for processing (1)
  • .github/workflows/build_android.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/build_android.yml

📝 Walkthrough

Walkthrough

EASの開発・本番ビルドワークフローと設定を削除し、GitHub ActionsでAndroidのdev/prod variantをビルドしてAABをartifact保存するワークフローを追加しました。環境変数、Sentry設定、署名情報もSecretsから設定します。

Changes

Androidビルドワークフロー

Layer / File(s) Summary
Variant選択とワークフロー起動
.github/workflows/build_android.yml
pushまたは手動実行を受け付け、イベント内容からdevRelease/prodReleaseと対応するGradleタスクを決定します。
ビルド環境と署名情報の準備
.github/workflows/build_android.yml
サブモジュール、Node.js、Java、Gradleを準備し、variant別の環境変数、Sentry設定、keystore、署名情報をSecretsから配置します。
GradleビルドとAAB保存
.github/workflows/build_android.yml
GradleでAABを生成し、variant別のartifactとしてアップロードします。

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant BuildSecrets
  participant Gradle
  participant ArtifactStorage
  GitHubActions->>BuildSecrets: 環境変数と署名情報を取得
  BuildSecrets-->>GitHubActions: ビルド設定を返却
  GitHubActions->>Gradle: variant別のbundleタスクを実行
  Gradle-->>GitHubActions: AABを生成
  GitHubActions->>ArtifactStorage: AABをアップロード
Loading

Possibly related PRs

  • TrainLCD/MobileApp#6247: 同じEASワークフロー領域でFirebase関連の設定デコード手順を変更しています。

Poem

ぴょんと跳ねたらActions起動
devもprodも巣へ集合
秘密の鍵で署名して
AABを空へアップロード
にんじん色のartifact!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed EAS設定の削除とGitHub ActionsによるAndroidビルドへの置き換えを正しく要約しています。
Description check ✅ Passed 概要・変更種別・変更内容・テスト意図が概ね揃っており、必須情報はほぼ満たしています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/android-build-workflow

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 5

🧹 Nitpick comments (3)
.github/workflows/build_android.yml (3)

1-1: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

YAML の文字列値をダブルクォートで統一してください。

name、branch 名、variant、type、node-version、runs-on、if-no-files-found などに未引用の文字列があります。GitHub expression 内の 'prodRelease' は expression 構文上必要なため、そのままで構いません。

修正例
-name: Build Android
+name: "Build Android"
...
-      - canary
+      - "canary"
...
-        default: devRelease
+        default: "devRelease"
...
-        type: choice
+        type: "choice"
...
-          - devRelease
+          - "devRelease"
...
-          node-version: 24
+          node-version: "24"

Based on learnings, workflow YAML strings should use double quotes; this is separate from JavaScript/TypeScript quote rules.

Also applies to: 6-7, 13-17, 20-20, 24-24, 28-28, 66-67, 74-75, 115-115

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build_android.yml at line 1, Update the workflow YAML
string values throughout the identified sections to use double quotes, including
the workflow name, branch names, variants, type, node-version, runs-on, and
if-no-files-found values. Preserve the single quotes around prodRelease inside
the GitHub expression because they are required by expression syntax.

Source: Learnings


52-52: 🔒 Security & Privacy | 🔵 Trivial | 🏗️ Heavy lift

Actions を immutable commit SHA に固定してください。

SSH 鍵、署名鍵、環境 Secrets を扱う workflow で、Actions を mutable な @v4 や @v0.9.1 タグに依存しています。各 action を完全な commit SHA に固定し、Dependabot 等で更新を管理してください。

Also applies to: 60-60, 64-64, 72-72, 78-78, 111-111

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build_android.yml at line 52, Update every action
reference in the build Android workflow, including webfactory/ssh-agent and the
actions identified at the additional locations, from mutable version tags to
full immutable commit SHAs. Preserve each action’s current version and configure
Dependabot or the repository’s existing update mechanism to manage future SHA
updates.

1-29: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

ワークフローの運用手順を文書化してください。

この変更には、dry-run 手順、Node 24/Java 17/Gradle の前提条件、必要な Secrets、生成される .env.local・Sentry・Gradle properties、GITHUB_TOKEN の権限、サービスアカウントの有無が記載されていません。手動実行は署名付き AAB を生成するため dry-run ではない点も含め、README または workflow 冒頭に明記してください。

As per coding guidelines, workflow updates must document dry-run instructions, prerequisites, secrets, environment variables, and service accounts.

Also applies to: 80-104

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build_android.yml around lines 1 - 29, Document the
Android workflow operation in the workflow header or README, covering dry-run
steps, Node 24/Java 17/Gradle prerequisites, required secrets, generated
.env.local and Sentry/Gradle properties, GITHUB_TOKEN permissions, and whether a
service account is required. Explicitly state that manual workflow_dispatch runs
produce signed AAB artifacts and are not dry-runs.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/build_android.yml:
- Around line 8-17: Restrict the prodRelease option in the workflow_dispatch
configuration so production builds cannot be manually started from arbitrary
refs. Enforce that prodRelease runs only from the master ref, or gate it through
a GitHub Environment with required reviewers and isolated production secrets,
while preserving the existing devRelease workflow.
- Around line 59-62: Update the Checkout step using actions/checkout@v4 to set
persist-credentials to false alongside the existing recursive submodules option,
ensuring the GITHUB_TOKEN is not retained in local Git configuration before
subsequent build scripts run.
- Around line 51-70: After the Checkout step completes recursive submodule
retrieval, update the workflow to remove the global GitHub SSH URL rewrite and
unset the SSH agent environment used by webfactory/ssh-agent before the npm ci
and Gradle steps run. Keep SSH configuration available through Checkout, but
ensure SSH_AUTH_SOCK and the url."[email protected]:".insteadOf setting no longer
persist afterward.
- Around line 80-104: Update the “Write .env.local (prod)” and “Write .env.local
(dev)” steps to pass secrets through step environment variables instead of
embedding them directly in run commands, preserving quotes, dollar signs,
backticks, and newlines. Update “Configure signing properties” to serialize the
secret values as valid Java properties, escaping #, =, and newlines before
writing gradle.properties.
- Around line 31-49: Update the “Determine build variant” step to pass
github.ref_name and github.event.inputs.variant through the step’s env variables
instead of interpolating them directly in the shell script. Read those
environment variables in the existing variant selection logic, validate that the
resulting variant is one of the supported values, and exit 1 for unexpected
values before emitting gradle_task, output_dir, and variant.

---

Nitpick comments:
In @.github/workflows/build_android.yml:
- Line 1: Update the workflow YAML string values throughout the identified
sections to use double quotes, including the workflow name, branch names,
variants, type, node-version, runs-on, and if-no-files-found values. Preserve
the single quotes around prodRelease inside the GitHub expression because they
are required by expression syntax.
- Line 52: Update every action reference in the build Android workflow,
including webfactory/ssh-agent and the actions identified at the additional
locations, from mutable version tags to full immutable commit SHAs. Preserve
each action’s current version and configure Dependabot or the repository’s
existing update mechanism to manage future SHA updates.
- Around line 1-29: Document the Android workflow operation in the workflow
header or README, covering dry-run steps, Node 24/Java 17/Gradle prerequisites,
required secrets, generated .env.local and Sentry/Gradle properties,
GITHUB_TOKEN permissions, and whether a service account is required. Explicitly
state that manual workflow_dispatch runs produce signed AAB artifacts and are
not dry-runs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0ccb74f1-ac9b-4c48-8f46-cc1f85bda89d

📥 Commits

Reviewing files that changed from the base of the PR and between a166d04 and 07d9fe4.

📒 Files selected for processing (4)
  • .eas/workflows/create-development-builds.yml
  • .eas/workflows/create-production-builds.yml
  • .github/workflows/build_android.yml
  • eas.json
💤 Files with no reviewable changes (3)
  • .eas/workflows/create-production-builds.yml
  • .eas/workflows/create-development-builds.yml
  • eas.json

Comment thread .github/workflows/build_android.yml Resolved
Comment thread .github/workflows/build_android.yml Resolved
Comment thread .github/workflows/build_android.yml Resolved
Comment thread .github/workflows/build_android.yml Resolved
Comment thread .github/workflows/build_android.yml Resolved
@TinyKitten

Copy link
Copy Markdown
Member Author

Fixes Applied Successfully

Fixed 1 file(s) based on 5 CodeRabbit feedback item(s).

Files modified:

  • .github/workflows/build_android.yml

Commit: 5caa67234

The latest autofix changes are on the chore/android-build-workflow branch.

@TinyKitten

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant