Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish realm/SwiftLint@0.54.0 (#1119)
* Publish realm/SwiftLint@0.54.0 Release: https://github.com/realm/SwiftLint/releases/tag/0.54.0 * Disable macOS task in presubmit Disabled until CI has Xcode 15 installed
- Loading branch information
Showing
4 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module( | ||
name = "swiftlint", | ||
version = "0.54.0", | ||
compatibility_level = 1, | ||
repo_name = "SwiftLint", | ||
) | ||
|
||
bazel_dep(name = "apple_support", version = "1.11.1", repo_name = "build_bazel_apple_support") | ||
bazel_dep(name = "platforms", version = "0.0.8") | ||
bazel_dep(name = "rules_apple", version = "3.1.1", repo_name = "build_bazel_rules_apple") | ||
bazel_dep(name = "rules_swift", version = "1.13.0", repo_name = "build_bazel_rules_swift") | ||
bazel_dep(name = "sourcekitten", version = "0.34.1", repo_name = "com_github_jpsim_sourcekitten") | ||
bazel_dep(name = "swift-syntax", version = "509.0.2", repo_name = "SwiftSyntax") | ||
bazel_dep(name = "swift_argument_parser", version = "1.2.1", repo_name = "sourcekitten_com_github_apple_swift_argument_parser") | ||
bazel_dep(name = "yams", version = "5.0.6", repo_name = "sourcekitten_com_github_jpsim_yams") | ||
|
||
swiftlint_repos = use_extension("//bazel:repos.bzl", "swiftlint_repos_bzlmod") | ||
use_repo( | ||
swiftlint_repos, | ||
"com_github_johnsundell_collectionconcurrencykit", | ||
"com_github_krzyzanowskim_cryptoswift", | ||
"swiftlint_com_github_scottrhoyt_swifty_text_table", | ||
) | ||
|
||
extra_rules = use_extension("//bazel:extensions.bzl", "extra_rules") | ||
use_repo(extra_rules, "swiftlint_extra_rules") | ||
|
||
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") | ||
|
||
# Dev Dependencies | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.5.0", dev_dependency = True) | ||
bazel_dep(name = "rules_xcodeproj", version = "1.13.0", dev_dependency = True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.9.1" | ||
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION" | ||
PATH: "$PATH:$SWIFT_HOME/usr/bin" | ||
shell_commands: *shell_commands | ||
build_flags: | ||
- "--action_env=PATH" | ||
build_targets: | ||
- '@swiftlint//:swiftlint' | ||
# Disabled until CI has Xcode 15 installed | ||
# verify_targets_macos: | ||
# name: Verify targets (macOS) | ||
# platform: macos | ||
# build_targets: | ||
# - '@swiftlint//:swiftlint' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"url": "https://github.com/realm/SwiftLint/releases/download/0.54.0/bazel.tar.gz", | ||
"integrity": "sha256-Open0iXGo5cWxIrqiO7jjfBS9ni/ba1z9ix0aj2cwQw=", | ||
"patches": {}, | ||
"patch_strip": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ | |
"0.52.2", | ||
"0.52.3", | ||
"0.52.4", | ||
"0.53.0" | ||
"0.53.0", | ||
"0.54.0" | ||
], | ||
"yanked_versions": {} | ||
} |