Skip to content

Commit

Permalink
Add SourceKitten 0.35.0 (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny committed May 8, 2024
1 parent 4826804 commit 44f48e3
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
15 changes: 15 additions & 0 deletions modules/sourcekitten/0.35.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module(
name = "sourcekitten",
version = "0.35.0",
compatibility_level = 1,
)

bazel_dep(name = "platforms", version = "0.0.8", dev_dependency = True)
bazel_dep(name = "apple_support", version = "1.11.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "rules_swift", version = "1.15.1", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "swift_argument_parser", version = "1.2.1", repo_name = "sourcekitten_com_github_apple_swift_argument_parser")
bazel_dep(name = "swxmlhash", version = "7.0.2", repo_name = "sourcekitten_com_github_drmohundro_SWXMLHash")
bazel_dep(name = "yams", version = "5.0.6", repo_name = "sourcekitten_com_github_jpsim_yams")

apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
use_repo(apple_cc_configure, "local_config_apple_cc")
29 changes: 29 additions & 0 deletions modules/sourcekitten/0.35.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
shell_commands: &shell_commands
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
- "mkdir $SWIFT_HOME"
- "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"

tasks:
verify_targets_linux:
name: Verify targets (Linux)
platform: ubuntu2004
bazel: 7.x
environment:
CC: "clang"
SWIFT_VERSION: "5.7.2"
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
PATH: "$PATH:$SWIFT_HOME/usr/bin"
shell_commands: *shell_commands
build_flags:
- "--action_env=PATH"
build_targets:
- '@sourcekitten//:sourcekitten'
verify_targets_macos:
name: Verify targets (macOS)
platform: macos
bazel: 7.x
build_flags:
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1"
build_targets:
# TODO: Build `:sourcekitten` target when CI has Xcode 14 installed
- '@sourcekitten//:SourceKittenFramework'
5 changes: 5 additions & 0 deletions modules/sourcekitten/0.35.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/jpsim/SourceKitten/archive/refs/tags/0.35.0.tar.gz",
"integrity": "sha256-2cVZFm8BYngmUFsOZVtWpZ+Gk4OJ4XOSWebOScn9lfA=",
"strip_prefix": "SourceKitten-0.35.0"
}
3 changes: 2 additions & 1 deletion modules/sourcekitten/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
],
"versions": [
"0.34.0",
"0.34.1"
"0.34.1",
"0.35.0"
],
"yanked_versions": {}
}

0 comments on commit 44f48e3

Please sign in to comment.