diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0452daef4..9ee9c0afb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,6 +112,16 @@ 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 + make test-spm-plugin PROTOC=../protobuf/cmake_build/protoc api-breakage: name: Api Breakage Compared to main branch diff --git a/PluginExamples/Sources/Nested/Nested/Nested.proto b/PluginExamples/Sources/Nested/Nested/Nested.proto index ab1530712..b871f3849 100644 --- a/PluginExamples/Sources/Nested/Nested/Nested.proto +++ b/PluginExamples/Sources/Nested/Nested/Nested.proto @@ -2,4 +2,5 @@ syntax = "proto3"; message Nested { string name = 1; + Nested next = 2; }