From 32ec9217c1982def1200e4b06e9b59e2ad4a7630 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 13 Dec 2024 12:54:01 -0500 Subject: [PATCH] Add a step to test compiling generated code in Swift 6 mode. --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0452daef4..14255358e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,6 +112,18 @@ jobs: - name: Compilation Tests working-directory: swift-protobuf run: make compile-tests PROTOC=../protobuf/cmake_build/protoc + - name: Test SPM plugin in Swift 6 mode + # This is a temporary step that basically allows us to test compiling the + # generated code in Swift 6 mode to keep an eye on the work needed. + if: startsWith(matrix.swift.version, '6.') + # This will fail until things are fixed, so don't break for it. + continue-on-error: true + working-directory: swift-protobuf + run: | + swift package tools-version --package-path PluginExamples --set 6.0 + swift package tools-version --set 6.0 + git diff + make test-spm-plugin PROTOC=../protobuf/cmake_build/protoc api-breakage: name: Api Breakage Compared to main branch