Skip to content

Commit 6cf1c7d

Browse files
Upgrade rules_apple v3.1.1 and use ios_build_test (#6)
* Use bzlmod and ios_build_test * Use Bazel v7.0.0 * Set `--apple_platform_type` * Revert "Set `--apple_platform_type`" This reverts commit 4b3eb88. * Remove bzlmod lock file * Revert "Remove bzlmod lock file" This reverts commit 1c60e87. * Build //:CollectionBuilders-iOS instead of //:all * Revert "Build //:CollectionBuilders-iOS instead of //:all" This reverts commit a555d60. * Expunge in workflow * Revert "Expunge in workflow" This reverts commit 9252cfe. * Add .bazelrc file * Revert "Add .bazelrc file" This reverts commit ff04cd4. * Add visibility * Use Xcode 15 * Revert "Use Xcode 15" This reverts commit 3e13a23. * Revert "Use Bazel v7.0.0" This reverts commit eaf6bce. * Revert WORKSPACE * Use bzlmod * Use Bazel v7.0.0 * Revert "Use bzlmod" This reverts commit 598ee85. * Disable bzlmod
1 parent 84309d7 commit 6cf1c7d

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.0.0

.github/workflows/bazel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
- name: Checkout source
1818
uses: actions/checkout@v3
1919
- name: Build
20-
run: bazelisk build --apple_platform_type=ios --cpu=ios_x86_64 //:CollectionBuilders
20+
run: bazelisk build --noenable_bzlmod //:all

BUILD.bazel

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_build_test")
12
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
23

4+
ios_build_test(
5+
name = "CollectionBuilders-iOS",
6+
minimum_os_version = "13.0",
7+
targets = [":CollectionBuilders"],
8+
)
9+
310
swift_library(
411
name = "CollectionBuilders",
5-
module_name = "CollectionBuilders",
6-
srcs = glob(["Sources/CollectionBuilders/**/*.swift"], allow_empty = False),
12+
srcs = glob(["Sources/CollectionBuilders/**/*.swift"]),
713
visibility = ["//visibility:public"],
14+
tags = ["manual"],
815
)

WORKSPACE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22

33
http_archive(
44
name = "build_bazel_rules_apple",
5-
sha256 = "8ac4c7997d863f3c4347ba996e831b5ec8f7af885ee8d4fe36f1c3c8f0092b2c",
6-
url = "https://github.com/bazelbuild/rules_apple/releases/download/2.5.0/rules_apple.2.5.0.tar.gz",
5+
sha256 = "34c41bfb59cdaea29ac2df5a2fa79e5add609c71bb303b2ebb10985f93fa20e7",
6+
url = "https://github.com/bazelbuild/rules_apple/releases/download/3.1.1/rules_apple.3.1.1.tar.gz",
77
)
88

99
load(

0 commit comments

Comments
 (0)