diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 28e41d8..0d7c61e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -18,20 +18,23 @@ 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"] + command: swift test + 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"] + command: swift build -c release + versions: ["current-2", "current-1", "current"] Debug-Test-Nightly: - command: swift test %COMMON_SWIFT_FLAGS% - versions: ["nightly-release", "nightly-main"] + command: swift test + versions: ["nightly-release", "nightly-main"] Release-Build-Nightly: - command: swift build -c release %COMMON_SWIFT_FLAGS% - versions: ["nightly-release", "nightly-main"] + command: swift build -c release + versions: ["nightly-release", "nightly-main"] + 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