From 34d09728cd49074f32d4f8d71f3f0e42d65c5a76 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:13:26 +0200 Subject: [PATCH] Fix GitHub workflow for running build and test --- .github/workflows/unit.yml | 44 ++++++++++++++++++++++++++++++++++++-- README.md | 2 +- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 6b91e79..6b39db6 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -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 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