From 12d0df3401f533e4b5aa04a1e8988f74cedb23a1 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Tue, 17 Jan 2023 15:18:29 +0000 Subject: [PATCH 1/4] Publish jpsim/SourceKitten@0.34.0 --- modules/sourcekitten/0.34.0/MODULE.bazel | 11 +++++++++++ modules/sourcekitten/0.34.0/presubmit.yml | 24 +++++++++++++++++++++++ modules/sourcekitten/0.34.0/source.json | 5 +++++ modules/sourcekitten/metadata.json | 22 +++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 modules/sourcekitten/0.34.0/MODULE.bazel create mode 100644 modules/sourcekitten/0.34.0/presubmit.yml create mode 100644 modules/sourcekitten/0.34.0/source.json create mode 100644 modules/sourcekitten/metadata.json diff --git a/modules/sourcekitten/0.34.0/MODULE.bazel b/modules/sourcekitten/0.34.0/MODULE.bazel new file mode 100644 index 00000000000..bc6a3b906c7 --- /dev/null +++ b/modules/sourcekitten/0.34.0/MODULE.bazel @@ -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") diff --git a/modules/sourcekitten/0.34.0/presubmit.yml b/modules/sourcekitten/0.34.0/presubmit.yml new file mode 100644 index 00000000000..b8a708ee225 --- /dev/null +++ b/modules/sourcekitten/0.34.0/presubmit.yml @@ -0,0 +1,24 @@ +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: + - '@sourcekitten//:sourcekitten' diff --git a/modules/sourcekitten/0.34.0/source.json b/modules/sourcekitten/0.34.0/source.json new file mode 100644 index 00000000000..05457fe0e61 --- /dev/null +++ b/modules/sourcekitten/0.34.0/source.json @@ -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" +} diff --git a/modules/sourcekitten/metadata.json b/modules/sourcekitten/metadata.json new file mode 100644 index 00000000000..076f7d73619 --- /dev/null +++ b/modules/sourcekitten/metadata.json @@ -0,0 +1,22 @@ +{ + "homepage": "https://github.com/jpsim/SourceKitten", + "maintainers": [ + { + "email": "jp@jpsim.com", + "github": "jpsim", + "name": "JP Simard" + }, + { + "email": "keithbsmiley@gmail.com", + "github": "keith", + "name": "Keith Smiley" + } + ], + "repository": [ + "github:jpsim/SourceKitten" + ], + "versions": [ + "0.34.0" + ], + "yanked_versions": {} +} From c942cc8a87d269135291b7a90b72dc3ffbc381d9 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Tue, 17 Jan 2023 10:23:21 -0500 Subject: [PATCH 2/4] Set `--macos_minimum_os=12.0` --- modules/sourcekitten/0.34.0/presubmit.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/sourcekitten/0.34.0/presubmit.yml b/modules/sourcekitten/0.34.0/presubmit.yml index b8a708ee225..1dade237626 100644 --- a/modules/sourcekitten/0.34.0/presubmit.yml +++ b/modules/sourcekitten/0.34.0/presubmit.yml @@ -20,5 +20,7 @@ tasks: verify_targets_macos: name: Verify targets (macOS) platform: macos + build_flags: + - --macos_minimum_os=12.0 build_targets: - '@sourcekitten//:sourcekitten' From 03dc0c777351c2c4ba64be5a600517707d415db4 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Wed, 18 Jan 2023 12:01:55 -0500 Subject: [PATCH 3/4] Set `--host_macos_minimum_os=12.0` --- modules/sourcekitten/0.34.0/presubmit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/sourcekitten/0.34.0/presubmit.yml b/modules/sourcekitten/0.34.0/presubmit.yml index 1dade237626..d13bed76b58 100644 --- a/modules/sourcekitten/0.34.0/presubmit.yml +++ b/modules/sourcekitten/0.34.0/presubmit.yml @@ -22,5 +22,6 @@ tasks: platform: macos build_flags: - --macos_minimum_os=12.0 + - --host_macos_minimum_os=12.0 build_targets: - '@sourcekitten//:sourcekitten' From 5ffd91c5052fb2c60bc4c9d4a32e63cb4244692c Mon Sep 17 00:00:00 2001 From: JP Simard Date: Thu, 19 Jan 2023 10:02:45 -0500 Subject: [PATCH 4/4] Build `:SourceKittenFramework` on macOS Which currently doesn't require Xcode 14, despite having officially dropped support for Xcode 13. --- modules/sourcekitten/0.34.0/presubmit.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/sourcekitten/0.34.0/presubmit.yml b/modules/sourcekitten/0.34.0/presubmit.yml index d13bed76b58..f3aca159219 100644 --- a/modules/sourcekitten/0.34.0/presubmit.yml +++ b/modules/sourcekitten/0.34.0/presubmit.yml @@ -20,8 +20,6 @@ tasks: verify_targets_macos: name: Verify targets (macOS) platform: macos - build_flags: - - --macos_minimum_os=12.0 - - --host_macos_minimum_os=12.0 build_targets: - - '@sourcekitten//:sourcekitten' + # TODO: Build `:sourcekitten` target when CI has Xcode 14 installed + - '@sourcekitten//:SourceKittenFramework'