From 0b576855328a64e80e2c604ef979fa37773a7e0e Mon Sep 17 00:00:00 2001 From: Vladimir Kukushkin Date: Wed, 18 Nov 2026 14:40:19 +0000 Subject: [PATCH] fixup! a better windows commands management --- .github/workflows/main.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c40b1e..a271a04 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,20 +14,13 @@ jobs: name: Tests uses: swiftlang/github-workflows/.github/workflows/package_test.yml@0.0.18 with: - windows_env_vars: '{"COMMON_SWIFT_FLAGS": "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"}' windows_command: | - Debug-Test: - command: swift test -Xswiftc -warnings-as-errors %COMMON_SWIFT_FLAGS% - versions: ["current-2", "current-1", "current"] - Release-Build: - command: swift build -c release -Xswiftc -warnings-as-errors %COMMON_SWIFT_FLAGS% - versions: ["current-2", "current-1", "current"] - Debug-Test-Nightly: - command: swift test %COMMON_SWIFT_FLAGS% - versions: ["nightly-release", "nightly-main"] - Release-Build-Nightly: - command: swift build -c release %COMMON_SWIFT_FLAGS% - versions: ["nightly-release", "nightly-main"] + Debug-Test: swift test + Release-Build: swift build -c release + windows_version_overrides: | + default: -Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable + nightly-release: --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable + nightly-main: --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable # The Windows runner installs a pinned Swift patch release. The container image tracks the newest patch release. # Context: https://github.com/swiftlang/github-workflows/issues/356 windows_use_docker: true