Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
publish-to-bcr-bot[bot] authored Jan 19, 2023
1 parent 060f752 commit 2c529be
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/sourcekitten/0.34.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module(
name = "sourcekitten",
version = "0.34.0",
compatibility_level = 1,
)

bazel_dep(name = "platforms", version = "0.0.6", dev_dependency = True)
bazel_dep(name = "rules_swift", version = "1.5.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.1", repo_name = "sourcekitten_com_github_drmohundro_SWXMLHash")
bazel_dep(name = "yams", version = "5.0.3", repo_name = "sourcekitten_com_github_jpsim_yams")
25 changes: 25 additions & 0 deletions modules/sourcekitten/0.34.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
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
build_targets:
# TODO: Build `:sourcekitten` target when CI has Xcode 14 installed
- '@sourcekitten//:SourceKittenFramework'
5 changes: 5 additions & 0 deletions modules/sourcekitten/0.34.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.34.0.tar.gz",
"integrity": "sha256-ejjeu5PvEVBPa2p3a+WYCVWR+ufhKCY3VNBBxa2o6FY=",
"strip_prefix": "SourceKitten-0.34.0"
}
22 changes: 22 additions & 0 deletions modules/sourcekitten/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"homepage": "https://github.com/jpsim/SourceKitten",
"maintainers": [
{
"email": "[email protected]",
"github": "jpsim",
"name": "JP Simard"
},
{
"email": "[email protected]",
"github": "keith",
"name": "Keith Smiley"
}
],
"repository": [
"github:jpsim/SourceKitten"
],
"versions": [
"0.34.0"
],
"yanked_versions": {}
}

0 comments on commit 2c529be

Please sign in to comment.