From 19fc8dd3ca9c26b1df17a5ea247490bbc952a57d Mon Sep 17 00:00:00 2001 From: Harald Date: Wed, 28 Oct 2026 20:59:44 +0100 Subject: [PATCH] ci: fetch the APK after restoring the Rust cache A cache restored without an exact match (Cargo.lock changed with the rustls update) cleans target/, which removed the downloaded APK, so the v0.42.0 release job stopped at INK_NOTES_REQUIRE_APK. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/release.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e1a428f..ea70615 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -19,12 +19,6 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4.2.2 - - name: Fetch Android APK - uses: actions/download-artifact@v4.3.0 - with: - name: ink-notes-android-apk - path: target - - name: Install System Packaging Tools run: | export DEBIAN_FRONTEND=noninteractive @@ -71,6 +65,14 @@ jobs: cargo clippy --all-targets -- -D warnings cargo test + # Only after the Rust cache step: restoring a cache that doesn't match exactly (e.g. + # after Cargo.lock changed) cleans target/ and would remove the APK again + - name: Fetch Android APK + uses: actions/download-artifact@v4.3.0 + with: + name: ink-notes-android-apk + path: target + - name: Build Release Artifacts (.deb, .AppImage, .exe, .apk, SHA256SUMS.txt + .minisig) run: | chmod +x scripts/*.sh