Skip to content

Commit a0564bf

Browse files
authored
Use Swift 5.4 for Windows job on GitHub Actions (#89)
* Use Swift 5.4 for Windows job on GitHub Actions * Prevent jobs from running twice on pull requests * Update Swift Argument Parser to 0.5.0
1 parent 9888e23 commit a0564bf

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

.github/workflows/tests_mac.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: tests-macos
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
37
jobs:
48
macOS:
59
name: macOS

.github/workflows/tests_ubuntu.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: tests-ubuntu
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
37
jobs:
48
ubuntu:
59
name: Ubuntu 18.04

.github/workflows/tests_windows.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: tests-windows
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
37
jobs:
48
windows:
59
name: windows
610
runs-on: windows-latest
711
steps:
8-
- uses: seanmiddleditch/gha-setup-vsdevenv@master
12+
- uses: seanmiddleditch/gha-setup-vsdevenv@v3
913

10-
- name: Install swift-DEVELOPMENT-SNAPSHOT-2020-09-22-a
14+
- name: Install Swift 5.4
1115
run: |
12-
Install-Binary -Url "https://swift.org/builds/development/windows10/swift-DEVELOPMENT-SNAPSHOT-2020-09-22-a/swift-DEVELOPMENT-SNAPSHOT-2020-09-22-a-windows10.exe" -Name "installer.exe" -ArgumentList ("-q")
16+
Install-Binary -Url "https://swift.org/builds/swift-5.4.2-release/windows10/swift-5.4.2-RELEASE/swift-5.4.2-RELEASE-windows10.exe" -Name "installer.exe" -ArgumentList ("-q")
1317
1418
- name: Set Environment Variables
1519
run: |
@@ -32,7 +36,7 @@ jobs:
3236
run: swift --version
3337

3438
- name: Checkout
35-
uses: actions/checkout@v1
39+
uses: actions/checkout@v2
3640

3741
- name: Build
3842
run: swift build -v

Package.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"repositoryURL": "https://github.com/apple/swift-argument-parser",
77
"state": {
88
"branch": null,
9-
"revision": "eb51f949cdd0c9d88abba9ce79d37eb7ea1231d0",
10-
"version": "0.2.0"
9+
"revision": "6b2aa2748a7881eebb9f84fb10c01293e15b52ca",
10+
"version": "0.5.0"
1111
}
1212
}
1313
]

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let package = Package(
2424
targets: ["Benchmark"])
2525
],
2626
dependencies: [
27-
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.0.1"),
27+
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.5.0"),
2828
],
2929
targets: [
3030
.target(

0 commit comments

Comments
 (0)