From ce093ab883eda2beb2f59dd98eb67c79ee692f29 Mon Sep 17 00:00:00 2001 From: Li <2188718831@qq.com> Date: Fri, 27 Nov 2026 03:20:17 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=9C=A8=E9=9D=9E=20Draft=20PR=20?= =?UTF-8?q?=E4=B8=8A=E8=BF=90=E8=A1=8C=20Windows=20x64=20=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d02c0b7..a9ad0e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI -# Draft pull requests only run the Linux checks. The macOS package job starts -# when a pull request is ready for review and on every push to main. +# Draft pull requests only run the Linux checks. Windows tests and macOS +# packaging run on ready pull requests and on every push to main. on: pull_request: types: [opened, synchronize, reopened, ready_for_review] @@ -44,6 +44,25 @@ jobs: - name: Check the pinned plugin SDK release run: scripts/verify-sdk-lock.sh --download + windows: + name: Test Windows x64 backend + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + runs-on: windows-latest + timeout-minutes: 30 + env: + # Match the static CRT used by the release backend. + RUSTFLAGS: -C target-feature=+crt-static + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-pc-windows-msvc + - uses: Swatinem/rust-cache@v2 + - name: Test the native Windows backend + run: cargo test --workspace --locked --target x86_64-pc-windows-msvc + package: name: Build and verify the macOS packages if: github.event_name != 'pull_request' || !github.event.pull_request.draft