Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpsim/[email protected] #374

Merged
merged 4 commits into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": {}
}