Skip to content

Commit

Permalink
Merge pull request #2 from to4iki/swift6
Browse files Browse the repository at this point in the history
Update to Swift6
  • Loading branch information
to4iki authored Nov 26, 2024
2 parents ace70a1 + 940c4d5 commit c91f3a4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: "6.0"
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: swift test --parallel
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"originHash" : "487e1e30174d4436cc5a82da699f1b72adb6f0c6ea350189369485c80bcd6dee",
"originHash" : "f284afc3b84d3c2e448b7f31ef551749f7ecb59c7282ff443eab872bab10a2cf",
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"location" : "https://github.com/swiftlang/swift-syntax.git",
"state" : {
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
"revision" : "0687f71944021d616d34d922343dcef086855920",
"version" : "600.0.1"
}
}
],
Expand Down
5 changes: 2 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swift-tools-version: 6.0

import PackageDescription
import CompilerPluginSupport
Expand All @@ -24,7 +23,7 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", from: "510.0.0"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.0"),
],
targets: [
.executableTarget(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LogMacro
![Swift 5](https://img.shields.io/badge/swift-5-orange.svg)
![Swift 6](https://img.shields.io/badge/swift-6-orange.svg)
![SPM compatible](https://img.shields.io/badge/SPM-Compatible-brightgreen.svg)
![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg)

Expand Down
5 changes: 3 additions & 2 deletions Sources/Interface/LogProcess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ public protocol LogPostActionPlugin {
}

public final class LogProcess {
public static let shared = LogProcess()

private var enabledLogLevel: LogLevel = .debug
private var replacingPlugin: LogReplacingPlugin?
private var postActionPlugins: [LogPostActionPlugin] = []

public nonisolated(unsafe) static let shared = LogProcess()
private init() {}

public func setEnabledLogLevel(_ level: LogLevel) {
self.enabledLogLevel = level
}
Expand Down

0 comments on commit c91f3a4

Please sign in to comment.