π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove broad Rust target cache
Manav Rathidab31c9b87eb
diff --git a/.github/workflows/ensu-android-build.yml b/.github/workflows/ensu-android-build.ymlindex 421842351b..5cda3778ee 100644--- a/.github/workflows/ensu-android-build.yml+++ b/.github/workflows/ensu-android-build.yml@@ -29,15 +29,6 @@ jobs:- name: Checkout codeuses: actions/checkout@v6- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- run: cargo codegen nativeworking-directory: rustdiff --git a/.github/workflows/ensu-build.yml b/.github/workflows/ensu-build.ymlindex 48793a7bfc..a92c4c18b5 100644--- a/.github/workflows/ensu-build.yml+++ b/.github/workflows/ensu-build.yml@@ -141,16 +141,6 @@ jobs:if: matrix.platform.rust-target == 'x86_64-apple-darwin'run: rustup target add x86_64-apple-darwin- - name: Restore Rust cache- if: matrix.platform.os == 'ubuntu-22.04'- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-22.04-${{ runner.arch }}--- name: Install web dependenciesworking-directory: webrun: yarn install --frozen-lockfile@@ -255,15 +245,6 @@ jobs:echo "y" | sdkmanager --install "ndk;${{ env.NDK_VERSION }}"echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/${{ env.NDK_VERSION }}" >> $GITHUB_ENV- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- run: cargo codegen nativeworking-directory: rustdiff --git a/.github/workflows/ensu-ios-build.yml b/.github/workflows/ensu-ios-build.ymlindex f7ae98bea5..1c77c1463c 100644--- a/.github/workflows/ensu-ios-build.yml+++ b/.github/workflows/ensu-ios-build.yml@@ -29,15 +29,6 @@ jobs:- name: Checkout codeuses: actions/checkout@v6- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-macos-latest-${{ runner.arch }}-ios--- run: cargo codegen nativeworking-directory: rustdiff --git a/.github/workflows/locker-lint.yml b/.github/workflows/locker-lint.ymlindex ff9f5342fa..d096f6478a 100644--- a/.github/workflows/locker-lint.yml+++ b/.github/workflows/locker-lint.yml@@ -47,18 +47,12 @@ jobs:flutter-version: ${{ env.FLUTTER_VERSION }}cache: true- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- run: cargo codegen frbworking-directory: rust+ - run: cargo check -p ente_rust --features flutter --locked+ working-directory: rust+- name: Generate strings localizationsrun: flutter gen-l10nworking-directory: mobile/packages/stringsdiff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.ymlindex 5696bbc7c2..e6a4fcbc28 100644--- a/.github/workflows/mobile-lint.yml+++ b/.github/workflows/mobile-lint.yml@@ -48,20 +48,14 @@ jobs:flutter-version: ${{ env.FLUTTER_VERSION }}cache: true- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- run: flutter pub get --enforce-lockfile- run: cargo codegen frbworking-directory: rust+ - run: cargo check -p ente_photos_rust --features flutter --locked+ working-directory: rust+- run: flutter analyze --no-fatal-infos- name: Run Flutter testsdiff --git a/.github/workflows/mobile-packages-lint.yml b/.github/workflows/mobile-packages-lint.ymlindex 9dc90b87e6..226e5f21b3 100644--- a/.github/workflows/mobile-packages-lint.yml+++ b/.github/workflows/mobile-packages-lint.yml@@ -94,18 +94,12 @@ jobs:flutter-version: ${{ env.FLUTTER_VERSION }}cache: true- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- run: cargo codegen frbworking-directory: rust+ - run: cargo check -p ente_rust --features flutter --locked+ working-directory: rust+- name: Generate strings localizationsrun: flutter gen-l10nworking-directory: mobile/packages/strings@@ -233,20 +227,18 @@ jobs:flutter-version: ${{ env.FLUTTER_VERSION }}cache: true- - name: Restore Rust cache- if: needs.detect-changes.outputs.lint_photos == 'true' || needs.detect-changes.outputs.lint_locker == 'true'- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- if: needs.detect-changes.outputs.lint_photos == 'true' || needs.detect-changes.outputs.lint_locker == 'true'run: cargo codegen frbworking-directory: rust+ - if: needs.detect-changes.outputs.lint_photos == 'true'+ run: cargo check -p ente_photos_rust --features flutter --locked+ working-directory: rust++ - if: needs.detect-changes.outputs.lint_locker == 'true'+ run: cargo check -p ente_rust --features flutter --locked+ working-directory: rust+- name: Generate strings localizationsrun: flutter gen-l10nworking-directory: mobile/packages/stringsdiff --git a/.github/workflows/rust-cache.yml b/.github/workflows/rust-cache.ymldeleted file mode 100644index 3de5a5823c..0000000000--- a/.github/workflows/rust-cache.yml+++ /dev/null@@ -1,147 +0,0 @@-name: "Cache (rust)"--on:- schedule:- # 03:00 AM IST.- - cron: "30 21 * * *"- workflow_dispatch:--permissions:- contents: read--concurrency:- group: ${{ github.workflow }}-${{ github.ref }}- cancel-in-progress: false--env:- CARGO_INCREMENTAL: "0"--jobs:- linux:- runs-on: ubuntu-latest- steps:- - name: Checkout code- uses: actions/checkout@v6-- - name: Restore Rust cache- id: rust_cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}-${{ hashFiles('rust/Cargo.lock', 'rust/**/Cargo.toml') }}- restore-keys: |- rust-ubuntu-latest-${{ runner.arch }}--- - name: Install WASM Rust target- run: rustup target add wasm32-unknown-unknown-- - name: Build Rust workspace- run: cargo build --workspace --exclude ensu-tauri --all-targets --locked- working-directory: rust-- - name: Build WASM Rust target- run: cargo build -p ente-wasm --release --target wasm32-unknown-unknown --locked- working-directory: rust-- - name: Generate native bindings- run: cargo codegen native- working-directory: rust-- - name: Build Ensu Android Rust libraries- run: ./gradlew :rust:buildRustJniDebug- working-directory: mobile/native/android/apps/ensu-- - name: Save Rust cache- if: github.ref == 'refs/heads/main' && steps.rust_cache.outputs.cache-hit != 'true'- uses: actions/cache/save@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}-${{ hashFiles('rust/Cargo.lock', 'rust/**/Cargo.toml') }}-- linux-tauri:- runs-on: ubuntu-22.04- steps:- - name: Checkout code- uses: actions/checkout@v6-- - name: Install Linux dependencies- run: |- sudo apt-get update- sudo apt-get install -y libwebkit2gtk-4.0-dev libsoup2.4-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev-- - name: Restore Rust cache- id: rust_cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-22.04-${{ runner.arch }}-${{ hashFiles('rust/Cargo.lock', 'rust/**/Cargo.toml') }}- restore-keys: |- rust-ubuntu-22.04-${{ runner.arch }}--- - name: Prepare Ensu desktop distDir- run: mkdir -p web/apps/ensu/out-- - name: Build Rust workspace- run: cargo build --workspace --all-targets --locked- working-directory: rust-- - name: Save Rust cache- if: github.ref == 'refs/heads/main' && steps.rust_cache.outputs.cache-hit != 'true'- uses: actions/cache/save@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-22.04-${{ runner.arch }}-${{ hashFiles('rust/Cargo.lock', 'rust/**/Cargo.toml') }}-- macos-ios:- runs-on: macos-latest- steps:- - name: Checkout code- uses: actions/checkout@v6-- - name: Restore Rust cache- id: rust_cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-macos-latest-${{ runner.arch }}-ios-${{ hashFiles('rust/Cargo.lock', 'rust/**/Cargo.toml') }}- restore-keys: |- rust-macos-latest-${{ runner.arch }}-ios--- - name: Generate native bindings- run: cargo codegen native- working-directory: rust-- - name: Build Ensu iOS simulator Rust libraries- run: |- SRCROOT="$PWD/mobile/native/darwin/Apps/Ensu" \- TARGET_TEMP_DIR="$RUNNER_TEMP/ensu-ios-cache" \- PLATFORM_NAME=iphonesimulator \- ARCHS="$(uname -m)" \- CONFIGURATION=Debug \- IPHONEOS_DEPLOYMENT_TARGET=16.0 \- bash mobile/native/darwin/Apps/Ensu/scripts/build-rust.sh-- - name: Save Rust cache- if: github.ref == 'refs/heads/main' && steps.rust_cache.outputs.cache-hit != 'true'- uses: actions/cache/save@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-macos-latest-${{ runner.arch }}-ios-${{ hashFiles('rust/Cargo.lock', 'rust/**/Cargo.toml') }}diff --git a/.github/workflows/rust-e2e-test.yml b/.github/workflows/rust-e2e-test.ymlindex 79da51da21..2074813b1f 100644--- a/.github/workflows/rust-e2e-test.yml+++ b/.github/workflows/rust-e2e-test.yml@@ -32,15 +32,6 @@ jobs:- name: Checkout codeuses: actions/checkout@v6- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- name: Run rust e2e suiteenv:ENTE_E2E_DOCKER_PROJECT: ente-rust-e2e-${{ github.run_id }}-${{ github.run_attempt }}diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.ymlindex 14a0b437ec..6fe0c23dc5 100644--- a/.github/workflows/rust-lint.yml+++ b/.github/workflows/rust-lint.yml@@ -31,15 +31,6 @@ jobs:sudo apt-get updatesudo apt-get install -y libwebkit2gtk-4.0-dev libsoup2.4-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-22.04-${{ runner.arch }}--- name: Prepare Ensu desktop distDirrun: mkdir -p ../web/apps/ensu/outdiff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.ymlindex f26479d575..814299fbee 100644--- a/.github/workflows/web-lint.yml+++ b/.github/workflows/web-lint.yml@@ -46,15 +46,6 @@ jobs:- run: yarn install --frozen-lockfile- - name: Restore Rust cache- uses: actions/cache/restore@v4- with:- path: |- ~/.cargo/registry- ~/.cargo/git- rust/target- key: rust-ubuntu-latest-${{ runner.arch }}--- run: yarn build:wasm- run: yarn lint