Skip to content

armgit / ente

Public Imported from GitHub
0

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

Share Rust cache for Ensu and desktop lint

laurensprieme3f623a2ef16
diff --git a/.github/workflows/desktop-lint.yml b/.github/workflows/desktop-lint.yml
index 6082a0f0a9..19aadae34d 100644
--- a/.github/workflows/desktop-lint.yml
+++ b/.github/workflows/desktop-lint.yml
@@ -34,7 +34,7 @@ jobs:
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: rust
- shared-key: rust-workspace
+ shared-key: ensu-android-photos-desktop
save-if: false
# tsc typechecks against the generated rust-bindings/index.d.ts.
diff --git a/.github/workflows/ensu-android-build.yml b/.github/workflows/ensu-android-build.yml
index 4592411c45..95e8e82965 100644
--- a/.github/workflows/ensu-android-build.yml
+++ b/.github/workflows/ensu-android-build.yml
@@ -34,7 +34,7 @@ jobs:
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: rust
- shared-key: ensu-android
+ shared-key: ensu-android-photos-desktop
save-if: false
# cargo codegen native builds the uniffi library for the host, which
diff --git a/.github/workflows/warm-caches.yml b/.github/workflows/warm-caches.yml
index fdc5759a97..22666aae78 100644
--- a/.github/workflows/warm-caches.yml
+++ b/.github/workflows/warm-caches.yml
@@ -124,18 +124,26 @@ jobs:
- run: npm run build:space-wasm
- ensu-android:
- # For ensu-android-build.yml.
+ ensu-android-photos-desktop:
+ # For ensu-android-build.yml and desktop-lint.yml.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+ - name: Setup node
+ uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ with:
+ node-version: 24
+
+ - run: npm ci
+ working-directory: desktop
+
- name: Setup Rust cache
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: rust
- shared-key: ensu-android
+ shared-key: ensu-android-photos-desktop
- name: Install Vulkan build dependencies
run: |
@@ -145,6 +153,9 @@ jobs:
- run: cargo codegen native
working-directory: rust
+ - run: cargo codegen napi
+ working-directory: rust
+
- name: Build Ensu
working-directory: mobile/native/android/apps/ensu
run: ./gradlew :app:assembleDebug