From 51d0151a0a8426a0a9463540e601bd14aab0d70e Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Sat, 25 Jul 2026 12:23:17 +0200 Subject: [PATCH] fix(ci): unbreak nightly asset cleanup and reduce rust cache pressure --- .github/workflows/rust-quality.yml | 2 ++ .github/workflows/tauri-build.yml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-quality.yml b/.github/workflows/rust-quality.yml index 55cac9d95..48ea6ac96 100644 --- a/.github/workflows/rust-quality.yml +++ b/.github/workflows/rust-quality.yml @@ -74,6 +74,8 @@ jobs: uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 with: workspaces: src-tauri + # Restore only on PRs; the repo sits at the 10 GiB cache cap. + save-if: ${{ github.ref == 'refs/heads/dev' }} - name: Check native app run: cargo check --locked --manifest-path src-tauri/Cargo.toml diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml index 10bcd6c52..113789832 100644 --- a/.github/workflows/tauri-build.yml +++ b/.github/workflows/tauri-build.yml @@ -336,7 +336,8 @@ jobs: CARGO_TERM_COLOR: always MISE_ENV: tauri NODE_OPTIONS: --max-old-space-size=8192 - RUST_TARGETS: aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android + # Matches the ABIs passed to `tauri android build` below. + RUST_TARGETS: aarch64-linux-android armv7-linux-androideabi ANDROID_KEY_BASE64: ${{ secrets.ANDROID_KEY_BASE64 }} ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }} ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }} @@ -618,9 +619,10 @@ jobs: --title "Nightly (dev)" \ --notes "Rolling nightly build $VERSION from dev — $GIT_SHA" + # .json manifests are overwritten in place, not accumulated. gh release view nightly --json assets \ | jq -r --arg cutoff "$STARTED_AT" \ - '.assets[] | select(.updatedAt <= $cutoff) | .name' \ + '.assets[] | select(.updatedAt <= $cutoff and (.name | endswith(".json") | not)) | .name' \ | while read -r name; do [ -n "$name" ] || continue echo "Removing superseded nightly asset: $name"