Skip to content

Commit

Permalink
Publish realm/SwiftLint@0.53.0 (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim committed Oct 5, 2023
1 parent e2cc04f commit 50948a6
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
30 changes: 30 additions & 0 deletions modules/swiftlint/0.53.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module(
name = "swiftlint",
version = "0.53.0",
compatibility_level = 1,
repo_name = "SwiftLint",
)

bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "rules_apple", version = "3.0.0", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_swift", version = "1.12.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_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")
bazel_dep(name = "swift-syntax", version = "509.0.0.1", repo_name = "SwiftSyntax")

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")

# Dev Dependencies

bazel_dep(name = "bazel_skylib", version = "1.4.2", dev_dependency = True)
bazel_dep(name = "rules_xcodeproj", version = "1.11.0", dev_dependency = True)
24 changes: 24 additions & 0 deletions modules/swiftlint/0.53.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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.9"
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'
verify_targets_macos:
name: Verify targets (macOS)
platform: macos
build_targets:
- '@swiftlint//:swiftlint'
6 changes: 6 additions & 0 deletions modules/swiftlint/0.53.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"url": "https://github.com/realm/SwiftLint/releases/download/0.53.0/bazel.tar.gz",
"integrity": "sha256-dYOdyeikkqhrtYWjzaPXO1iZfXoU0C8dupQXF2a7hZk=",
"patches": {},
"patch_strip": 0
}
3 changes: 2 additions & 1 deletion modules/swiftlint/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"0.52.1",
"0.52.2",
"0.52.3",
"0.52.4"
"0.52.4",
"0.53.0"
],
"yanked_versions": {}
}

0 comments on commit 50948a6

Please sign in to comment.