8000 ci: consumer-test the Swift package, before tagging and after publishing (v3) by adityamukho · Pull Request #9 · project-minigraf/minigraf-swift · GitHub
[go: up one dir, main page]

Skip to content

ci: consumer-test the Swift package, before tagging and after publishing (v3) - #9

Merged
adityamukho merged 2 commits into
v3from
ci/consumer-tests-v3
Oct 21, 2026
Merged

adityamukho merged 2 commits into
v3from
ci/consumer-tests-v3

Conversation

@adityamukho
Copy link
Copy Markdown
Contributor

The v3 copy of #8: the same two commits, cherry-picked. ci.yml keeps v3's swift-test job and its [main, v3] push trigger. Otherwise the change is identical, including the module.modulemap fix.

See #8 for what it does, the fix, and the deviations from the plan.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PtCdzbJMSS1V8qEPaJ4jXz

adityamukho and others added 2 commits October 21, 2026 10:27
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
@adityamukho
adityamukho merged commit 0b7bdda into v3 Oct 21, 2026
5 checks passed
@adityamukho
adityamukho deleted the ci/consumer-tests-v3 branch October 21, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0