Skip to content

Commit

Permalink
Fix GitHub workflow for running build and test (#202)
Browse files Browse the repository at this point in the history
* Fix GitHub workflow for running build and test

* Add back support for testing Swift 5.7
  • Loading branch information
tyiu authored Nov 25, 2024
1 parent c20d508 commit 1bc7913
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1bc7913

Please sign in to comment.