Skip to content

armgit / ente

Public Imported from GitHub
0

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

Cache the pinned Cast toolchain in web CI

Manav Rathiac183ed42fba
diff --git a/.github/workflows/warm-caches.yml b/.github/workflows/warm-caches.yml
index 90f21b6c3b..78bdaa4760 100644
--- a/.github/workflows/warm-caches.yml
+++ b/.github/workflows/warm-caches.yml
@@ -218,6 +218,13 @@ jobs:
lookup-only: true
shared-key: rust-wasm
+ # rust-src timestamps must match the cached build-std artifacts.
+ - name: Cache Cast toolchain
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
+ with:
+ key: cast-toolchain-${{ hashFiles('rust/bindings/wasm/cast/rust-toolchain.toml') }}
+ path: ~/.rustup/toolchains/nightly-*
+
- name: Cache web
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml
index da6d5de359..4700eb1efe 100644
--- a/.github/workflows/web-lint.yml
+++ b/.github/workflows/web-lint.yml
@@ -37,6 +37,12 @@ jobs:
with:
shared-key: rust-wasm
+ - name: Restore Cast toolchain
+ uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
+ with:
+ key: cast-toolchain-${{ hashFiles('rust/bindings/wasm/cast/rust-toolchain.toml') }}
+ path: ~/.rustup/toolchains/nightly-*
+
- name: Restore web cache
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with: