Skip to content

Commit 2a310bb

Browse files
authored
Use "Setup Swift" action to install swift, and bump swift version to 5.4 (#129)
* Update SwiftPlot_Ubuntu.yml * Update SwiftPlot_Ubuntu.yml
1 parent c475f46 commit 2a310bb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/SwiftPlot_Ubuntu.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches: master
66
pull_request:
77

8-
env:
9-
SWIFT_VERSION: 5.2.1
10-
118
jobs:
129
build:
1310

@@ -19,12 +16,10 @@ jobs:
1916
run: sudo apt-get install libfreetype6-dev
2017
- name: Install Swift Dependencies
2118
run: sudo apt-get install clang libicu-dev
22-
- name: Download Swift
23-
run: wget "https://swift.org/builds/swift-${{ env.SWIFT_VERSION }}-release/ubuntu1804/swift-${{ env.SWIFT_VERSION }}-RELEASE/swift-${{ env.SWIFT_VERSION }}-RELEASE-ubuntu18.04.tar.gz"
2419
- name: Install Swift
25-
run: |
26-
tar xzf swift-${{ env.SWIFT_VERSION }}-RELEASE-ubuntu18.04.tar.gz
27-
echo "::add-path::$(pwd)/swift-${{ env.SWIFT_VERSION }}-RELEASE-ubuntu18.04/usr/bin"
20+
uses: fwal/setup-swift@v1
21+
with:
22+
swift-version: "5.4"
2823
- name: Build
2924
run: swift build -v
3025
- name: Run tests

0 commit comments

Comments
 (0)