From cebf1148c20e04c6069dc9acc854775849a7da21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Rom=C3=A1n=20N=C3=BA=C3=B1ez?= Date: Mon, 14 Sep 2026 16:16:48 +0000 Subject: [PATCH] Persist Rust CI cache (#4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Pin the nightly Rust toolchain used by CI - Cache Cargo dependencies and build artifacts between Gitea Actions runs - Share the Linux nightly cache across branches Reviewed-on: https://git.eirexe.moe/EIREXE/shinespark/pulls/4 Co-authored-by: Álex Román Núñez --- .gitea/workflows/ci.yml | 8 +++++++- rust-toolchain.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8555443..a803971 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -20,7 +20,13 @@ jobs: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ sh -s -- -y --profile minimal echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - "$HOME/.cargo/bin/rustup" toolchain install nightly --profile minimal + "$HOME/.cargo/bin/rustup" toolchain install nightly-2026-09-14 --profile minimal + + - name: Cache Rust dependencies and build artifacts + uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 + with: + shared-key: linux-nightly + cache-bin: false - name: Install Linux dependencies run: | diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5d56faf..7e614b4 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly" +channel = "nightly-2026-09-14"