Skip to content

Commit c475f46

Browse files
authored
Bring Swift to 5.2.1 in Github Actions (#123)
1 parent c5424eb commit c475f46

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/SwiftPlot_Ubuntu.yml

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

8+
env:
9+
SWIFT_VERSION: 5.2.1
10+
811
jobs:
912
build:
1013

@@ -17,11 +20,11 @@ jobs:
1720
- name: Install Swift Dependencies
1821
run: sudo apt-get install clang libicu-dev
1922
- name: Download Swift
20-
run: wget "https://swift.org/builds/swift-5.1.3-release/ubuntu1804/swift-5.1.3-RELEASE/swift-5.1.3-RELEASE-ubuntu18.04.tar.gz"
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"
2124
- name: Install Swift
2225
run: |
23-
tar xzf swift-5.1.3-RELEASE-ubuntu18.04.tar.gz
24-
echo "::add-path::$(pwd)/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin"
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"
2528
- name: Build
2629
run: swift build -v
2730
- name: Run tests

0 commit comments

Comments
 (0)