Skip to content

Commit 5535ad2

Browse files
ci: use self-hosted runner label for iOS and Android builds
Allow builds to run on any available self-hosted runner (mini or studio) instead of requiring a specific runner. Also add backlog task for future Android build optimizations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5eea736 commit 5535ad2

3 files changed

Lines changed: 33 additions & 2 deletions

File tree

.github/workflows/build-android-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ concurrency:
2929

3030
jobs:
3131
build:
32-
runs-on: mini
32+
runs-on: self-hosted
3333
env:
3434
BUNDLE_FROZEN: "true"
3535
RUBYOPT: "-W0"

.github/workflows/build-ios-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ concurrency:
2929

3030
jobs:
3131
build:
32-
runs-on: mini
32+
runs-on: self-hosted
3333
env:
3434
BUNDLE_FROZEN: "true"
3535
RUBYOPT: "-W0"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
id: task-035
3+
title: Optimize Android CI build time
4+
status: To Do
5+
assignee: []
6+
created_date: '2026-02-04 20:47'
7+
labels:
8+
- ci
9+
- android
10+
- performance
11+
dependencies: []
12+
priority: medium
13+
---
14+
15+
## Description
16+
17+
<!-- SECTION:DESCRIPTION:BEGIN -->
18+
Android CI builds take ~8 minutes compared to iOS's ~2 minutes. Two optimizations can significantly reduce this:
19+
20+
1. **Cache Rust target directories**: Add Android Rust target directories to the GitHub Actions cache. Currently only `src-tauri/gen/android/app/build` is cached, but the Rust compilation artifacts in `src-tauri/target/*-linux-android*` are rebuilt from scratch each run.
21+
22+
2. **Reduce target architectures**: Build only arm64 and armv7, dropping i686 and x86_64. Most modern Android devices are arm64, and armv7 covers older devices. The x86/x64 targets are primarily for emulators and rare Chrome OS devices.
23+
<!-- SECTION:DESCRIPTION:END -->
24+
25+
## Acceptance Criteria
26+
<!-- AC:BEGIN -->
27+
- [ ] #1 Android Rust target directories are included in GHA cache
28+
- [ ] #2 Android builds target only aarch64-linux-android and armv7-linux-androideabi
29+
- [ ] #3 i686-linux-android and x86_64-linux-android targets are removed from CI builds
30+
- [ ] #4 Android CI build time is reduced (target: under 5 minutes)
31+
<!-- AC:END -->

0 commit comments

Comments
 (0)