From 23709e812cf252cd99157433a32a363bc3899c7c Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Wed, 4 Dec 2024 16:13:08 -0800 Subject: [PATCH 1/2] Fix issue in publish_release pipeline testing swift-format in debug configuration --- .github/workflows/publish_release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 03c4f04f..a360c3f9 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -116,8 +116,8 @@ jobs: # fatal: empty ident name (for <>) not allowed cmd /c "type $env:TEMP\patch.diff | git am || (exit /b 1)" # We require that releases of swift-format build without warnings - linux_build_command: swift test -Xswiftc -warnings-as-errors ${{ matrix.release && '-c release' }} - windows_build_command: swift test -Xswiftc -warnings-as-errors ${{ matrix.release && '-c release' }} + linux_build_command: swift test -Xswiftc -warnings-as-errors ${{ matrix.release && '-c release' || '' }} + windows_build_command: swift test -Xswiftc -warnings-as-errors ${{ matrix.release && '-c release' || '' }} create_tag: name: Create Tag runs-on: ubuntu-latest From 4db71dbfb9f24ce83c02b15c426b6f39405739eb Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Wed, 4 Dec 2024 16:14:11 -0800 Subject: [PATCH 2/2] Run Windows tests dockerless --- .github/workflows/publish_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index a360c3f9..5c1985c7 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -99,6 +99,7 @@ jobs: matrix: release: [true, false] with: + enable_windows_docker: false # Dockerless Windows is 5-10 minutes faster than Docker on Windows linux_pre_build_command: | git config --global --add safe.directory "$(realpath .)" git config --local user.name 'swift-ci'