Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[ci] Pre-install Android Rust targets under stable toolchain

Neeraj Gupta3531d6b80320
diff --git a/.github/workflows/mobile-daily-internal.yml b/.github/workflows/mobile-daily-internal.yml
index ab586b2a1d..0e98d18e09 100644
--- a/.github/workflows/mobile-daily-internal.yml
+++ b/.github/workflows/mobile-daily-internal.yml
@@ -52,7 +52,15 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- targets: armv7-linux-androideabi,aarch64-linux-android
+
+ # Cargokit resolves the toolchain as "stable" (not a pinned
+ # version like "1.90.0"). Two Cargokit instances run in
+ # parallel during Gradle build, and both race to
+ # `rustup target add` if the targets are missing β€” causing
+ # download conflicts. Pre-install them here to prevent that.
+ - name: Pre-install Android Rust targets
+ run: |
+ rustup target add --toolchain stable armv7-linux-androideabi aarch64-linux-android
- name: Resolve dependencies with lockfile enforcement
run: flutter pub get --enforce-lockfile