Skip to content

Commit eb7bdd7

Browse files
authored
Fix swift action (#29)
* Fix? * Fix
1 parent d7e5b15 commit eb7bdd7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/swift.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222

2323
runs-on: ${{ matrix.os }}
2424

25+
env:
26+
SWIFT_VERSION: 6.1
27+
2528
steps:
2629
- uses: actions/setup-node@v4
2730
with:
@@ -31,9 +34,12 @@ jobs:
3134
# what swift binary to use?
3235
- name: Setup Swift for Ubuntu
3336
if: runner.os == 'Linux'
34-
uses: swift-actions/setup-swift@v2
35-
with:
36-
swift-version: "6.0.3"
37+
run: |
38+
wget -q https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2204/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04.tar.gz
39+
tar xzf swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04.tar.gz
40+
mv swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04 /opt/swift
41+
rm swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04.tar.gz
42+
export PATH="/opt/swift/usr/bin:${PATH}"
3743
- uses: actions/checkout@v2
3844
- name: Build
3945
run: swift build -c ${{ matrix.kind }} -v

0 commit comments

Comments
 (0)