From bc296816b14bdd44bb25ae0969d9c2d803340979 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Tue, 31 Mar 2026 13:23:39 +1100 Subject: [PATCH] only run windows compile on main branch (#8216) --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18db0963..2c553a20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,8 +79,7 @@ jobs: rust-build-windows: name: Build Rust Project on Windows runs-on: windows-latest - needs: changes - if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - name: Checkout Code uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1