Skip to content

Commit eedcdd6

Browse files
committed
Enable swift tests on CI.
Also update the module version and the README direction for swift.
1 parent e3b5165 commit eedcdd6

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
ARCH: arm64
6565
OS: macos
6666
EXECUTION_TYPE: ${{ matrix.execution_type }}
67+
APPLE_SDK_VERSION_OVERRIDE: 26.5
6768
run: python3 infra/test-all.py --package=${{ matrix.test_package }}
6869

6970
linux-test-matrix:

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ use_repo(maven, "maven")
128128

129129
bazel_dep(name = "rules_kotlin", version = "2.3.20")
130130
bazel_dep(name = "rules_perl", version = "1.1.1")
131-
bazel_dep(name = "rules_swift", version = "3.6.1")
131+
bazel_dep(name = "rules_swift", version = "4.0.0-rc2")
132132
bazel_dep(name = "rules_nodejs", version = "6.7.4")
133133
bazel_dep(name = "aspect_rules_ts", version = "3.8.10")
134134
bazel_dep(name = "aspect_bazel_lib", version = "2.22.5")

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ locally before attempting remote execution.
7171

7272
```sh
7373
# --config=clang isn't required on macOS
74-
bazel build --config=clang //swift:tests
74+
bazel build --config=clang //swift/...
7575
```
7676

7777
### Testing locally
@@ -100,7 +100,7 @@ locally before attempting remote execution.
100100

101101
```sh
102102
# --config=clang isn't required on macOS
103-
bazel test --config=clang //swift:tests
103+
bazel test --config=clang //swift/...
104104
```
105105

106106
## Remote execution

platform/macos_arm64/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ available_xcodes(
4949
":version26_5_0_17F42",
5050
],
5151
)
52-

swift/BUILD

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ swift_test(
55
size = "small",
66
srcs = [
77
"example.swift",
8-
"main.swift",
8+
#"main.swift",
99
],
1010
tags = [
11-
"manual",
12-
"no-ci", # Broken toolchain setup
11+
"no-linux-ci", # No linux swift toolchains currently defined.
1312
],
1413
)

0 commit comments

Comments
 (0)