Skip to content

Commit 0c13569

Browse files
author
Joe Newton
committed
Fixed broken Github workflow
1 parent e8c6307 commit 0c13569

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/swift.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@ jobs:
77
strategy:
88
matrix:
99
os: [macOS-latest, ubuntu-latest]
10+
swift: ["5.1"]
1011
runs-on: ${{ matrix.os }}
12+
env:
13+
SWIFT_VERSION: ${{ matrix.swift }}
14+
SWIFT_EXEC: .swiftenv/shims/swift
1115
steps:
1216
- uses: actions/checkout@v2
17+
- name: Install Swift
18+
run: |
19+
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
20+
~/.swiftenv/bin/swiftenv install $SWIFT_VERSION
1321
- name: Build
1422
run: |
15-
swift build -v
23+
~/$SWIFT_EXEC --version
24+
~/$SWIFT_EXEC build -v
1625
- name: Test
1726
run: |
18-
swift test -v
27+
~/$SWIFT_EXEC test -v

0 commit comments

Comments
 (0)