Skip to content

Commit

Permalink
Fix GitHub workflow for running build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiu committed Nov 25, 2024
1 parent c20d508 commit 34d0972
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
44 changes: 42 additions & 2 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,51 @@ on:
workflow_dispatch:

jobs:
build-and-test:
build-and-test-macos-12:
runs-on: macos-12
strategy:
matrix:
swift: ['5.7']

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-13:
runs-on: macos-latest
strategy:
matrix:
swift: ['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-latest
strategy:
matrix:
swift: ['5.8', '5.9', '5.10', '6.0']
swift: ['5.10', '6.0']

steps:
- name: Checkout
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 34d0972

Please sign in to comment.