only run windows compile on main branch (#8216)

This commit is contained in:
Lifei Zhou
2026-03-31 13:23:39 +11:00
committed by GitHub
parent b860e0f269
commit bc296816b1

View File

@@ -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