π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update workflow
Manav Rathiea6491489f6e
diff --git a/.github/workflows/rust-lint-cli.yml b/.github/workflows/rust-lint-cli.ymlnew file mode 100644index 0000000000..5230ef45c7--- /dev/null+++ b/.github/workflows/rust-lint-cli.yml@@ -0,0 +1,48 @@+name: "Lint (rust)"++on:+ # Run on every pull request (open or push to it) that changes rust/cli/ related files.+ #+ # Kept as a separate workflow than rust-lint.yml since the CLI currently+ # has many dependencies and the lint takes longer, while most of the+ # work is happening on the lighter-weight core.+ pull_request:+ paths:+ - "rust/**"+ - ".github/workflows/rust-lint-cli.yml"++permissions:+ contents: read++# Cancel in-progress lint runs when a new commit is pushed.+concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true++env:+ RUSTFLAGS: -D warnings++jobs:+ lint:+ runs-on: ubuntu-latest+ defaults:+ run:+ working-directory: rust+ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Cache+ uses: actions/cache@v4+ with:+ path: |+ ~/.cargo/registry+ ~/.cargo/git+ target+ key: ${{ runner.os }}-cargo-${{ hashFiles('rust/cli/Cargo.lock') }}++ - run: cargo fmt --check++ - run: cargo clippy --all-targets --all-features++ - run: cargo builddiff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.ymlindex 802482c548..33f51f1aef 100644--- a/.github/workflows/rust-lint.yml+++ b/.github/workflows/rust-lint.yml@@ -1,10 +1,16 @@name: "Lint (rust)"on:- # Run on every pull request (open or push to it) that changes rust/+ # Run on every pull request (open or push to it) that changes Rust code+ #+ # See also: rust-lint-cli.ymlpull_request:paths:- - "rust/**"+ - "rust/core/**"+ - "mobile/apps/photos/rust/**"+ - "mobile/packages/rust/rust/**"+ - "web/packages/wasm/Cargo.*"+ - "web/packages/wasm/src/**"- ".github/workflows/rust-lint.yml"permissions:@@ -21,9 +27,6 @@ env:jobs:lint:runs-on: ubuntu-latest- defaults:- run:- working-directory: ruststeps:- name: Checkout codeuses: actions/checkout@v4@@ -35,10 +38,69 @@ jobs:~/.cargo/registry~/.cargo/gittarget+ # This also hashes cli's Cargo.lock, but it's fine for now.key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}- - run: cargo fmt --check+ - name: Check formatting (core)+ run: cargo fmt --check+ working-directory: rust/core- - run: cargo clippy --all-targets --all-features+ - name: Run clippy (core)+ run: cargo clippy+ working-directory: rust/core- - run: cargo build+ - name: Build (core)+ run: cargo build+ working-directory: rust/core++ - name: Test (core)+ run: cargo test+ working-directory: rust/core++ - name: Check formatting (ente_rust)+ run: cargo fmt -- src/frb_generated.rs && cargo fmt --check+ working-directory: mobile/packages/rust/rust++ - name: Run clippy (ente_rust)+ run: cargo clippy+ working-directory: mobile/packages/rust/rust++ - name: Build (ente_rust)+ run: cargo build+ working-directory: mobile/packages/rust/rust++ - name: Test (ente_rust)+ run: cargo test+ working-directory: mobile/packages/rust/rust++ - name: Check formatting (ente_photos_rust)+ run: cargo fmt -- src/frb_generated.rs && cargo fmt --check+ working-directory: mobile/apps/photos/rust++ - name: Run clippy (ente_photos_rust)+ run: cargo clippy+ working-directory: mobile/apps/photos/rust++ - name: Build (ente_photos_rust)+ run: cargo build+ working-directory: mobile/apps/photos/rust++ - name: Test (ente_photos_rust)+ run: cargo test+ working-directory: mobile/apps/photos/rust++ - name: Check formatting (wasm)+ run: cargo fmt --check+ working-directory: web/packages/wasm++ - name: Run clippy (wasm)+ run: cargo clippy+ working-directory: web/packages/wasm++ - name: Build (wasm)+ run: cargo build+ working-directory: web/packages/wasm++ - name: Test (wasm)+ run: cargo test+ working-directory: web/packages/wasm