Repository navigation
ci: consumer-test the Swift package, before tagging and after publishing (v3) - #9
Merged
Merged
Conversation
package.yml builds the xcframework zip and the generated Swift sources exactly as the release publishes them. The consumer test assembles the package swift-releases will carry, adds it to an empty SPM app package, and runs the README quick start and the consumer contract with xcodebuild test on an iOS simulator. The release tests these files at the release version and publishes exactly them (the checksum comes from the tested zip); verify-published.yml resolves the published version with SPM afterwards and opens a release-broken issue on failure. Fix found by the test: no release up to 2.0.8 compiled. The xcframework's module map was named minigraf_ffiFFI.modulemap, which Clang never finds, so `canImport(minigraf_ffiFFI)` was false and minigraf_ffi.swift failed with "cannot find type 'RustBuffer' in scope". It is now module.modulemap, and Sources/MinigrafKit gets only the Swift file; swift-releases drops the stale header and module map. The release also stamps the README install version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PtCdzbJMSS1V8qEPaJ4jXz
… version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PtCdzbJMSS1V8qEPaJ4jXz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
v3copy of #8: the same two commits, cherry-picked.ci.ymlkeeps v3'sswift-testjob and its[main, v3]push trigger. Otherwise the change is identical, including themodule.modulemapfix.See #8 for what it does, the fix, and the deviations from the plan.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PtCdzbJMSS1V8qEPaJ4jXz