Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[swift] Add bazel configuration for Swift #7195

Merged
merged 3 commits into from
Mar 30, 2022
Merged

[swift] Add bazel configuration for Swift #7195

merged 3 commits into from
Mar 30, 2022

Conversation

keith
Copy link
Contributor

@keith keith commented Mar 29, 2022

This change adds a simple bazel BUILD file for consuming the Swift
support. This also bumps the platforms bazel repo to fix support for M1s
and bazel 5.1+ bazelbuild/bazel#15099 (comment)

The rules_swift inclusion here must happen before gRPC to ensure we
don't pull in an older version.

This change adds a simple bazel BUILD file for consuming the Swift
support. This also bumps the platforms bazel repo to fix support for M1s
and bazel 5.1+ bazelbuild/bazel#15099 (comment)

The rules_swift inclusion here must happen before gRPC to ensure we
don't pull in an older version.
@github-actions github-actions bot added the CI Continuous Integration label Mar 29, 2022
@mustiikhalil
Copy link
Collaborator

Hej! thanks for the PR, @keith

Would love to know the idea behind it if possible? since the swift lib doesn't really run on bazel, and it runs on a macOS instants to validate the tests on actions. Unless we are missing something, and it would help us make sure the quality of the code is better

@keith
Copy link
Contributor Author

keith commented Mar 29, 2022

really run on bazel, and it runs on a macOS instants to validate the tests on actions

With my bazel CI changes here it is being validated by that CI as well. but the intent is to make it easier to include flatbuffers in iOS projects that build with bazel like envoyproxy/envoy-mobile#2133

Copy link
Collaborator

@mustiikhalil mustiikhalil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from a swift point of view, I've tagged another reviewer just to confirm that we are good to go

@dbaileychess dbaileychess merged commit fec1a8d into google:master Mar 30, 2022
@keith
Copy link
Contributor Author

keith commented Mar 30, 2022

Thanks!

mustiikhalil pushed a commit to mustiikhalil/flatbuffers that referenced this pull request Apr 6, 2022
* [swift] Add bazel configuration for Swift

This change adds a simple bazel BUILD file for consuming the Swift
support. This also bumps the platforms bazel repo to fix support for M1s
and bazel 5.1+ bazelbuild/bazel#15099 (comment)

The rules_swift inclusion here must happen before gRPC to ensure we
don't pull in an older version.

* Add CC=clang which is a requirement for Swift on Linux

* Add Swift to PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants