Skip to content

Commit 08641e9

Browse files
publish-to-bcr-bot[bot]BalestraPatrickbrentleyjones
authored
Release: https://github.com/bazelbuild/rules_swift/releases/tag/1.17.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Signed-off-by: Brentley Jones <[email protected]> Co-authored-by: Patrick Balestra <[email protected]> Co-authored-by: Brentley Jones <[email protected]>
1 parent 1d96bcc commit 08641e9

File tree

5 files changed

+97
-1
lines changed

5 files changed

+97
-1
lines changed
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
module(
2+
name = "rules_swift",
3+
version = "1.17.0",
4+
bazel_compatibility = [">=6.0.0"],
5+
compatibility_level = 1,
6+
repo_name = "build_bazel_rules_swift",
7+
)
8+
9+
bazel_dep(name = "bazel_features", version = "1.3.0")
10+
bazel_dep(name = "bazel_skylib", version = "1.3.0")
11+
bazel_dep(name = "apple_support", version = "1.13.0", repo_name = "build_bazel_apple_support")
12+
bazel_dep(name = "rules_cc", version = "0.0.2")
13+
bazel_dep(name = "platforms", version = "0.0.7")
14+
bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf")
15+
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
16+
bazel_dep(name = "nlohmann_json", version = "3.6.1", repo_name = "com_github_nlohmann_json")
17+
18+
non_module_deps = use_extension("//swift:extensions.bzl", "non_module_deps")
19+
use_repo(
20+
non_module_deps,
21+
"build_bazel_rules_swift_index_import",
22+
"build_bazel_rules_swift_local_config",
23+
"com_github_apple_swift_log",
24+
"com_github_apple_swift_nio",
25+
"com_github_apple_swift_nio_extras",
26+
"com_github_apple_swift_nio_http2",
27+
"com_github_apple_swift_nio_transport_services",
28+
"com_github_apple_swift_protobuf",
29+
"com_github_grpc_grpc_swift",
30+
)
31+
32+
apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
33+
use_repo(apple_cc_configure, "local_config_apple_cc")
34+
35+
# Dev dependencies
36+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True)
37+
bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle")
38+
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,7 +1,7 @@
5+
module(
6+
name = "rules_swift",
7+
- version = "0",
8+
+ version = "1.17.0",
9+
bazel_compatibility = [">=6.0.0"],
10+
compatibility_level = 1,
11+
repo_name = "build_bazel_rules_swift",
12+
)
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
shell_commands: &shell_commands
2+
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
3+
- "mkdir $SWIFT_HOME"
4+
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME"
5+
6+
matrix:
7+
bazel:
8+
- 7.x
9+
- last_green
10+
platform:
11+
- ubuntu2004
12+
tasks:
13+
verify_targets:
14+
name: Verify build targets
15+
bazel: ${{ bazel }}
16+
platform: ${{ platform }}
17+
environment:
18+
CC: "clang"
19+
SWIFT_VERSION: "5.5.3"
20+
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
21+
PATH: "$PATH:$SWIFT_HOME/usr/bin"
22+
shell_commands: *shell_commands
23+
build_flags:
24+
- "--action_env=PATH"
25+
build_targets:
26+
- "@rules_swift//examples/xplatform/..."
27+
- "-@rules_swift//examples/xplatform/deprecated_grpc/..." # TODO: Fix grpc on Linux
28+
- "-@rules_swift//examples/xplatform/grpc/..." # TODO: Fix grpc on Linux
29+
verify_targets_macos:
30+
name: Verify build targets
31+
bazel: ${{ bazel }}
32+
platform: macos
33+
build_targets:
34+
- "@rules_swift//examples/apple/..."
35+
build_flags:
36+
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-m8nclJBiQFQSQEwPB/cyO6MQ8/kfQq9BSsJ+M4unu4w=",
3+
"strip_prefix": "",
4+
"url": "https://github.com/bazelbuild/rules_swift/releases/download/1.17.0/rules_swift.1.17.0.tar.gz",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-l9R97T0K2lbfurEt4ZkLTagdk7pGdKiLNFjhhQnkuWI="
7+
},
8+
"patch_strip": 1
9+
}

modules/rules_swift/metadata.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"1.14.0",
4444
"1.15.0",
4545
"1.15.1",
46-
"1.16.0"
46+
"1.16.0",
47+
"1.17.0"
4748
],
4849
"yanked_versions": {}
4950
}

0 commit comments

Comments
 (0)