Skip to content

Commit 3a9d84a

Browse files
committed
Fix CI: use swift-actions/setup-swift@v2 with swift-version: 6.2
The deprecated compnerd/gha-setup-swift@main action was causing CI failures on all platforms. Replaced with swift-actions/setup-swift@v2 which is the actively maintained Swift setup action for GitHub Actions. Also simplified test scripts to use direct 'swift test' command instead of wrapper scripts that had Docker fallback and PowerShell compatibility issues on CI runners.
1 parent 3c611ae commit 3a9d84a

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,15 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Install Swift 6.2
19-
uses: compnerd/gha-setup-swift@main
19+
uses: swift-actions/setup-swift@v2
2020
with:
21-
source: swift.org
22-
swift-version: swift-6.2-release
23-
swift-build: 6.2-RELEASE
21+
swift-version: "6.2"
2422

2523
- name: Run tests (Unix)
2624
if: matrix.os != 'windows-latest'
27-
run: |
28-
chmod +x scripts/run-tests.sh || true
29-
./scripts/run-tests.sh
25+
run: swift test
3026

3127
- name: Run tests (Windows)
3228
if: matrix.os == 'windows-latest'
3329
shell: pwsh
34-
run: |
35-
.\scripts\run-tests.ps1
30+
run: swift test

.github/workflows/docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ jobs:
2020
uses: actions/configure-pages@v4
2121

2222
- name: Install Swift 6.2
23-
uses: compnerd/gha-setup-swift@main
23+
uses: swift-actions/setup-swift@v2
2424
with:
25-
source: swift.org
26-
swift-version: swift-6.2-release
27-
swift-build: 6.2-RELEASE
25+
swift-version: "6.2"
2826

2927
- name: Generate Documentation
3028
run: |

0 commit comments

Comments
 (0)