connectrpc / connect-swift

The Swift implementation of Connect: Protobuf RPC that works.
https://connectrpc.com/docs/swift/getting-started
Apache License 2.0
93 stars 18 forks source link

Update CI to Xcode 15.1 & run builds for iOS, watchOS, tvOS #231

Closed rebello95 closed 8 months ago

rebello95 commented 9 months ago

Originally the intent was to run tests on each platform, but for some reason GitHub runners are refusing to cooperate and jobs are stalling. Instead, we'll continue running swift test which runs tests on the host environment (macOS) and will use xcodebuild to build for each platform since it allows for specifying a target SDK/environment (see this question and these notes).

Follow-up to https://github.com/connectrpc/connect-swift/pull/227 and related to https://github.com/connectrpc/connect-swift/issues/226.

eseay commented 9 months ago

Not sure why the CI is failing, but I do know that we've had issues since moving to Xcode 15 in Actions on my own projects. I see that Xcode 15.1 has just been released, and there's a pending issue to get the actions runners updated with it. 🤞

rebello95 commented 9 months ago

Yeah I'm not really sure why these are failing either - the job seems to just hang during compilation despite it passing in a reasonable time locally. Can you link the issue you're referring to?

rebello95 commented 9 months ago

Seems imminent: https://github.com/actions/runner-images/issues/8997

rebello95 commented 9 months ago

Looks like 15.1 didn't fix the issue on the GitHub runners. I updated the PR and its description to instead build for each platform (which does work on GitHub runners) and run tests the same way we do today on macOS. Tests are green now