π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
move frb checks to mobile lint
Manav Rathi72c3692880c1
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.ymlindex e876fdd86f..539902e2b7 100644--- a/.github/workflows/mobile-lint.yml+++ b/.github/workflows/mobile-lint.yml@@ -12,6 +12,7 @@ on:env:FLUTTER_VERSION: "3.32.8"RUST_VERSION: "1.88.0"+ RUSTFLAGS: -D warningspermissions:contents: read@@ -35,6 +36,16 @@ jobs:flutter-version: ${{ env.FLUTTER_VERSION }}cache: true+ - name: Cache+ uses: actions/cache@v4+ with:+ path: |+ ~/.cargo/registry+ ~/.cargo/git+ mobile/packages/rust/rust/target+ mobile/apps/photos/rust/target+ key: ${{ runner.os }}-cargo-mobile-${{ hashFiles('mobile/**/Cargo.lock') }}+- run: flutter pub get- name: Install Rust ${{ env.RUST_VERSION }}@@ -53,3 +64,35 @@ jobs:run: flutter_rust_bridge_codegen generate- run: flutter analyze --no-fatal-infos++ - name: Check formatting (ente_rust)+ working-directory: mobile/packages/rust/rust+ run: cargo fmt -- src/frb_generated.rs && cargo fmt --check++ - name: Run clippy (ente_rust)+ working-directory: mobile/packages/rust/rust+ run: cargo clippy --all-targets --all-features++ - name: Build (ente_rust)+ working-directory: mobile/packages/rust/rust+ run: cargo build++ - name: Test (ente_rust)+ working-directory: mobile/packages/rust/rust+ run: cargo test++ - name: Check formatting (ente_photos_rust)+ working-directory: mobile/apps/photos/rust+ run: cargo fmt -- src/frb_generated.rs && cargo fmt --check++ - name: Run clippy (ente_photos_rust)+ working-directory: mobile/apps/photos/rust+ run: cargo clippy --all-targets --all-features++ - name: Build (ente_photos_rust)+ working-directory: mobile/apps/photos/rust+ run: cargo build++ - name: Test (ente_photos_rust)+ working-directory: mobile/apps/photos/rust+ run: cargo testdiff --git a/.github/workflows/rust-lint-cli.yml b/.github/workflows/rust-lint-cli.ymlindex 680517fb04..97d25cc0e1 100644--- a/.github/workflows/rust-lint-cli.yml+++ b/.github/workflows/rust-lint-cli.yml@@ -39,7 +39,7 @@ jobs:~/.cargo/registry~/.cargo/gitrust/cli/target- key: ${{ runner.os }}-cargo-${{ hashFiles('rust/cli/Cargo.lock') }}+ key: ${{ runner.os }}-cargo-cli-${{ hashFiles('rust/cli/Cargo.lock') }}- run: cargo fmt --checkdiff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.ymlindex a12a9ba3b5..2552bf826b 100644--- a/.github/workflows/rust-lint.yml+++ b/.github/workflows/rust-lint.yml@@ -7,8 +7,6 @@ on:pull_request:paths:- "rust/core/**"- - "mobile/packages/rust/rust/**"- - "mobile/apps/photos/rust/**"- "web/packages/wasm/Cargo.*"- "web/packages/wasm/src/**"- ".github/workflows/rust-lint.yml"@@ -38,22 +36,8 @@ jobs:~/.cargo/registry~/.cargo/gitrust/core/target- mobile/packages/rust/rust/target- mobile/apps/photos/rust/targetweb/packages/wasm/target- # This also hashes cli's Cargo.lock, but it's fine for now.- key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-- - name: Install Flutter Rust Bridge- run: cargo install flutter_rust_bridge_codegen-- - name: Generate Rust bindings (ente_rust)- working-directory: mobile/packages/rust- run: flutter_rust_bridge_codegen generate-- - name: Generate Rust bindings (ente_photos_rust)- working-directory: mobile/apps/photos- run: flutter_rust_bridge_codegen generate+ key: ${{ runner.os }}-cargo-${{ hashFiles('rust/core/Cargo.lock', 'web/packages/wasm/Cargo.lock') }}- name: Check formatting (core)working-directory: rust/core@@ -71,38 +55,6 @@ jobs:working-directory: rust/corerun: cargo test- - name: Check formatting (ente_rust)- working-directory: mobile/packages/rust/rust- run: cargo fmt -- src/frb_generated.rs && cargo fmt --check-- - name: Run clippy (ente_rust)- working-directory: mobile/packages/rust/rust- run: cargo clippy --all-targets --all-features-- - name: Build (ente_rust)- working-directory: mobile/packages/rust/rust- run: cargo build-- - name: Test (ente_rust)- working-directory: mobile/packages/rust/rust- run: cargo test-- - name: Check formatting (ente_photos_rust)- working-directory: mobile/apps/photos/rust- run: cargo fmt -- src/frb_generated.rs && cargo fmt --check-- - name: Run clippy (ente_photos_rust)- working-directory: mobile/apps/photos/rust- run: cargo clippy --all-targets --all-features-- - name: Build (ente_photos_rust)- working-directory: mobile/apps/photos/rust- run: cargo build-- - name: Test (ente_photos_rust)- working-directory: mobile/apps/photos/rust- run: cargo test-- name: Check formatting (wasm)working-directory: web/packages/wasmrun: cargo fmt --check