Skip to content

Commit

Permalink
Upgrade rules_apple v3.1.1 and use ios_build_test (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller authored Dec 12, 2023
1 parent 27efce5 commit bbbfd0b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.0.0
2 changes: 1 addition & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3
- name: Build
run: bazelisk build --apple_platform_type=ios --cpu=ios_x86_64 //:Layout
run: bazelisk build --noenable_bzlmod //:all
12 changes: 10 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_build_test")
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")

ios_build_test(
name = "Layout-iOS",
minimum_os_version = "13.0",
targets = [":Layout"],
)

swift_library(
name = "Layout",
module_name = "Layout",
srcs = glob(["Sources/Layout/**/*.swift"], allow_empty = False),
srcs = glob(["Sources/Layout/**/*.swift"]),
copts = ["-strict-concurrency=complete"],
visibility = ["//visibility:public"],
tags = ["manual"],
)
4 changes: 2 additions & 2 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "build_bazel_rules_apple",
sha256 = "8ac4c7997d863f3c4347ba996e831b5ec8f7af885ee8d4fe36f1c3c8f0092b2c",
url = "https://github.com/bazelbuild/rules_apple/releases/download/2.5.0/rules_apple.2.5.0.tar.gz",
sha256 = "34c41bfb59cdaea29ac2df5a2fa79e5add609c71bb303b2ebb10985f93fa20e7",
url = "https://github.com/bazelbuild/rules_apple/releases/download/3.1.1/rules_apple.3.1.1.tar.gz",
)

load(
Expand Down

0 comments on commit bbbfd0b

Please sign in to comment.