Skip to content

Commit ce093ab

Browse files
ci: 在非 Draft PR 上运行 Windows x64 后端测试
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 2e08718 commit ce093ab

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22

3-
# Draft pull requests only run the Linux checks. The macOS package job starts
4-
# when a pull request is ready for review and on every push to main.
3+
# Draft pull requests only run the Linux checks. Windows tests and macOS
4+
# packaging run on ready pull requests and on every push to main.
55
on:
66
pull_request:
77
types: [opened, synchronize, reopened, ready_for_review]
@@ -44,6 +44,25 @@ jobs:
4444
- name: Check the pinned plugin SDK release
4545
run: scripts/verify-sdk-lock.sh --download
4646

47+
windows:
48+
name: Test Windows x64 backend
49+
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
50+
runs-on: windows-latest
51+
timeout-minutes: 30
52+
env:
53+
# Match the static CRT used by the release backend.
54+
RUSTFLAGS: -C target-feature=+crt-static
55+
steps:
56+
- uses: actions/checkout@v4
57+
with:
58+
persist-credentials: false
59+
- uses: dtolnay/rust-toolchain@stable
60+
with:
61+
targets: x86_64-pc-windows-msvc
62+
- uses: Swatinem/rust-cache@v2
63+
- name: Test the native Windows backend
64+
run: cargo test --workspace --locked --target x86_64-pc-windows-msvc
65+
4766
package:
4867
name: Build and verify the macOS packages
4968
if: github.event_name != 'pull_request' || !github.event.pull_request.draft

0 commit comments

Comments
 (0)