Skip to content

Commit

Permalink
Merge pull request #25 from RakuyoKit/feature/macos-13
Browse files Browse the repository at this point in the history
Supported starting from macOS13
  • Loading branch information
rakuyoMo authored Apr 17, 2024
2 parents 80fb13c + b646cb9 commit a694093
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@ on:
branches: [ master ]

jobs:
test-package-plugin-macos-12:
name: Test Package Plugin
runs-on: macos-12
strategy:
fail-fast: false
matrix:
xcode:
- '13.4.1' # Swift 5.6
steps:
- uses: actions/checkout@v2
- name: Test Package Plugin
run: swift package --allow-writing-to-package-directory format --lint

test-package-plugin-macos-13:
name: Test Package Plugin
runs-on: macos-13
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// swift-tools-version: 5.6
// swift-tools-version: 5.8
import PackageDescription

let package = Package(
name: "RakuyoSwift",
platforms: [.macOS(.v10_13)],
platforms: [.macOS(.v13)],
products: [
.plugin(name: "FormatSwift", targets: ["FormatSwift"]),
],
Expand Down
8 changes: 4 additions & 4 deletions Sources/RakuyoSwiftFormatTool/RakuyoSwiftFormatTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extension RakuyoSwiftFormatTool {
}

if
let swiftLintAutocorrectExitCode = swiftLintAutocorrectExitCode,
let swiftLintAutocorrectExitCode,
swiftLintAutocorrectExitCode != EXIT_SUCCESS
{
throw ExitCode(swiftLintAutocorrectExitCode)
Expand All @@ -104,15 +104,15 @@ extension RakuyoSwiftFormatTool {
"--config", swiftFormatConfig,
]

if let swiftFormatCachePath = swiftFormatCachePath {
if let swiftFormatCachePath {
arguments += ["--cache", swiftFormatCachePath]
}

if lint {
arguments += ["--lint"]
}

if let swiftVersion = swiftVersion {
if let swiftVersion {
arguments += ["--swiftversion", swiftVersion]
}

Expand All @@ -133,7 +133,7 @@ extension RakuyoSwiftFormatTool {
"--strict",
]

if let swiftLintCachePath = swiftLintCachePath {
if let swiftLintCachePath {
arguments += ["--cache-path", swiftLintCachePath]
}

Expand Down

0 comments on commit a694093

Please sign in to comment.