Skip to content

armgit / ente

Public Imported from GitHub
0

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

warm cache

laurenspriem0ed1961508fc
diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.yml
index 9acb24b816..a3334bcb21 100644
--- a/.github/workflows/rust-lint.yml
+++ b/.github/workflows/rust-lint.yml
@@ -15,6 +15,7 @@ concurrency:
env:
RUSTFLAGS: -D warnings
+ ENTE_ML_ASSETS_CACHE_DIR: ${{ github.workspace }}/.ml-assets-cache
jobs:
lint:
@@ -38,6 +39,7 @@ jobs:
workspaces: rust
shared-key: rust-workspace
save-if: false
+ cache-directories: .ml-assets-cache
- run: cargo fmt --check
diff --git a/.github/workflows/warm-caches.yml b/.github/workflows/warm-caches.yml
index 9145b88ab5..3f729c703c 100644
--- a/.github/workflows/warm-caches.yml
+++ b/.github/workflows/warm-caches.yml
@@ -30,6 +30,7 @@ jobs:
working-directory: rust
env:
RUSTFLAGS: -D warnings
+ ENTE_ML_ASSETS_CACHE_DIR: ${{ github.workspace }}/.ml-assets-cache
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -44,10 +45,16 @@ jobs:
with:
workspaces: rust
shared-key: rust-workspace
+ cache-directories: .ml-assets-cache
- run: cargo clippy --all-targets --locked
- - run: cargo test --locked --workspace --no-run
+ - run: cargo test --locked --workspace --features ente-photos/ml-assets --no-run
+
+ # Downloads (or verifies) the ML test assets without running inference.
+ - run: cargo test --locked -p ente-photos --test ml_indexing --features ml-assets
+ env:
+ ENTE_ML_ASSETS_PREFETCH_ONLY: "1"
- run: cargo install cargo-audit --version 0.22.2 --locked