From 807048b652e5242adb7987c4d1f3699c3767e7f5 Mon Sep 17 00:00:00 2001 From: Sed Date: Tue, 14 Jan 2025 20:59:38 +0800 Subject: [PATCH 1/4] chore: fix version --- .github/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4dd2bfd..39b2081 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,9 +7,9 @@ jobs: name: Swift ${{ matrix.swift }} strategy: matrix: - swift: ["5.5", "5.6"] + swift: ["5.7", "5.8"] fail-fast: false - runs-on: macos-11 + runs-on: macos-latest steps: - uses: swift-actions/setup-swift@v1 with: From bcb51336ef8fec941e8d055c2e51a1bd57dbfe66 Mon Sep 17 00:00:00 2001 From: Sed Date: Tue, 14 Jan 2025 21:03:40 +0800 Subject: [PATCH 2/4] fix: 2nd attempt --- .github/workflows/tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 39b2081..653c246 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,7 +9,9 @@ jobs: matrix: swift: ["5.7", "5.8"] fail-fast: false - runs-on: macos-latest + runs-on: macos-13 + env: + DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer steps: - uses: swift-actions/setup-swift@v1 with: From e5c8ac59df7abed348c7166179279f3073aad05e Mon Sep 17 00:00:00 2001 From: Sed Date: Tue, 14 Jan 2025 21:11:22 +0800 Subject: [PATCH 3/4] fix: remove test discovery flag from CI workflow --- .github/workflows/tests.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 653c246..240cef4 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -4,18 +4,14 @@ on: [push] jobs: build: - name: Swift ${{ matrix.swift }} - strategy: - matrix: - swift: ["5.7", "5.8"] - fail-fast: false + name: Swift Tests runs-on: macos-13 env: DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer steps: - uses: swift-actions/setup-swift@v1 with: - swift-version: ${{ matrix.swift }} + swift-version: "5.7" - uses: actions/checkout@v3 - name: Build run: swift build -v From 853f3591b65a64b44972af8ec5611257f9dfa6a5 Mon Sep 17 00:00:00 2001 From: Sed Date: Tue, 14 Jan 2025 21:12:09 +0800 Subject: [PATCH 4/4] fix: remove test discovery flag from CI workflow --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 240cef4..5f4549f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,4 +16,4 @@ jobs: - name: Build run: swift build -v - name: Run tests - run: swift test -c release -Xswiftc -enable-testing --enable-test-discovery + run: swift test -c release -Xswiftc -enable-testing