Windows CI 只在推送改到平台相关代码、构建脚本或依赖时运行,tag 不再触发

This commit is contained in:
Xuz committed 2026-10-01 20:12:03 +08:00
1 parent e1a74faa53
commit bcf2db0413
2 files changed
+23 -1

No files matched your search

+22
View File
@@ -1,10 +1,32 @@
# The Windows build, which the Macs this is developed on cannot compile:
# the whole crate through clippy, the external CLI's tests, including the
# named pipe between two processes, and the updater's.
#
# A push runs it only when it touches code that differs on Windows (the
# files with `cfg(windows)` and friends), the build script or the
# dependencies. Windows code added to another file goes in this list too;
# until then, run it by hand (Actions › windows › Run workflow). Tags never
# run it: the release workflow builds Windows itself.
name: windows
on:
push:
branches: ["**"]
paths:
- "src/cli/**"
- "src/update/**"
- "src/app/paths.rs"
- "src/main.rs"
- "src/bin/**"
- "src/ssh/connection.rs"
- "src/sftp/download.rs"
- "src/credential/credential_dialog.rs"
- "src/settings/settings_panel.rs"
- "tests/cli_bin.rs"
- "build.rs"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
workflow_dispatch:
jobs: