mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-28 12:56:25 -08:00
fix(ci): stop sweeping in-place nightly manifests and cap PR rust caches (#1335)
### Description fix nightly assets and rust cache Fixes # #### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings ### AI disclosure: - [ ] Partially AI assisted (clarify which code was AI assisted and briefly explain what it does). - [ ] Fully AI generated (explain what all the generated code does in moderate detail). <!-- Write any explanation required here, but do not generate the explanation using AI!! You must prove you understand what the code in this PR does. -->
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user