diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 6b91e79..f5e86f1 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -8,11 +8,31 @@ on: workflow_dispatch: jobs: - build-and-test: - runs-on: macos-latest + build-and-test-macos-13: + runs-on: macos-13 strategy: matrix: - swift: ['5.8', '5.9', '5.10', '6.0'] + swift: ['5.7', '5.8', '5.9'] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Swift + uses: SwiftyLab/setup-swift@latest + with: + swift-version: ${{ matrix.swift }} + + - name: Build and Test + run: | + swift build + swift test + + build-and-test-macos-14: + runs-on: macos-14 + strategy: + matrix: + swift: ['5.10', '6.0'] steps: - name: Checkout diff --git a/Package.swift b/Package.swift index 6629b7f..642ead3 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.7.1 +// swift-tools-version: 5.7 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/README.md b/README.md index 763ea59..b76ab00 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Nostr SDK for Apple Platforms is a native Swift library that enables developers ## Minimum Requirements -- Swift 5.8 +- Swift 5.7 - iOS 15 - macOS 12