[mob][photos] fix gallery jump for asc sort #3805
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Lint (mobile)" | |
| on: | |
| # Run on every pull request (open or push to it) that changes mobile/ | |
| pull_request: | |
| paths: | |
| - "mobile/apps/photos/**" | |
| - "mobile/packages/rust/**" | |
| - "rust/core/**" | |
| - ".github/workflows/mobile-lint.yml" | |
| env: | |
| FLUTTER_VERSION: "3.32.8" | |
| RUSTFLAGS: -D warnings | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: mobile/apps/photos | |
| steps: | |
| - name: Checkout code and submodules | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Flutter ${{ env.FLUTTER_VERSION }} | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "stable" | |
| 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 Flutter Rust Bridge | |
| run: cargo install flutter_rust_bridge_codegen | |
| - name: Generate Rust bindings (Core) | |
| run: flutter_rust_bridge_codegen generate | |
| working-directory: mobile/packages/rust | |
| - name: Generate Rust bindings | |
| 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 test |