From 77fb1c59f0742176bf4d8f2db538732ee5562dad Mon Sep 17 00:00:00 2001 From: DarkSky Date: Fri, 4 Dec 2026 13:17:56 +0900 Subject: [PATCH] ci(frontend): skip mobile checks for desktop changes --- .github/workflows/np-mobile.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/np-mobile.yml b/.github/workflows/np-mobile.yml index eb6cf4b52d..3229f32dea 100644 --- a/.github/workflows/np-mobile.yml +++ b/.github/workflows/np-mobile.yml @@ -33,6 +33,7 @@ jobs: outputs: web-host-only: ${{ steps.classify.outputs.web_host_only }} desktop-leaf-only: ${{ steps.classify.outputs.desktop_leaf_only }} + desktop-rs-only: ${{ steps.classify.outputs.desktop_rs_only }} backend-only: ${{ steps.classify.outputs.backend_only }} web-wrapper-only: ${{ steps.classify.outputs.web_wrapper_only }} apple-specific: ${{ steps.base.outputs.force_all == 'true' && 'true' || steps.classify.outputs.apple_specific }} @@ -154,6 +155,7 @@ jobs: node --test perf/compare-n3.test.mjs - name: Install Linux fontconfig, Mesa Lavapipe Vulkan, and CJK fallback font + if: needs.changes.outputs.desktop-leaf-only != 'true' run: | sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list sudo apt-get update @@ -177,22 +179,27 @@ jobs: run: cargo fmt --all -- --check - name: Clippy check + if: needs.changes.outputs.desktop-leaf-only != 'true' working-directory: packages/frontend run: cargo clippy --locked --workspace --all-targets --features harness -- -D warnings - name: Host and preview tests + if: needs.changes.outputs.desktop-leaf-only != 'true' working-directory: packages/frontend run: cargo test --locked -p affine-android-host -p affine-ios-host -p blocksuite-preview --all-features - name: Mobile tests + if: needs.changes.outputs.desktop-leaf-only != 'true' working-directory: packages/frontend run: cargo test --locked -p affine-mobile --all-targets - name: Mobile harness audit matrix + if: needs.changes.outputs.desktop-leaf-only != 'true' working-directory: packages/frontend run: cargo run --locked -p affine-mobile --features harness --bin mobile-harness -- audit-matrix - name: Mobile harness frame replay + if: needs.changes.outputs.desktop-leaf-only != 'true' working-directory: packages/frontend run: cargo run --locked -p affine-mobile --features harness --bin mobile-harness -- fps-replay @@ -301,7 +308,9 @@ jobs: preview-wasm-workers: name: Preview Wasm Workers (4 Independent Targets) needs: changes - if: needs.changes.outputs.backend-only != 'true' + if: >- + needs.changes.outputs.backend-only != 'true' && + needs.changes.outputs.desktop-rs-only != 'true' runs-on: ubuntu-24.04 timeout-minutes: 20 defaults: