Skip to content

Commit 76978fe

Browse files
committed
Updated GitHub CI
1 parent a1290ce commit 76978fe

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/swift.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,35 @@ name: Swift
22
on: [push]
33
jobs:
44

5-
build:
6-
name: Build
5+
macos:
6+
name: macOS
7+
strategy:
8+
matrix:
9+
swift: [5.7.1]
10+
os: [macos-latest]
11+
runs-on: ${{ matrix.os }}
12+
steps:
13+
- name: Install Swift
14+
uses: slashmo/install-swift@v0.3.0
15+
with:
16+
version: ${{ matrix.swift }}
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Swift Version
20+
run: swift --version
21+
- name: Build (Debug)
22+
run: swift build -c debug
23+
- name: Build (Release)
24+
run: swift build -c release
25+
- name: Test (Debug)
26+
run: swift test -c debug
27+
28+
linux:
29+
name: Linux
730
strategy:
831
matrix:
932
swift: [5.6.3, 5.7.1]
10-
os: [macos-latest, ubuntu-latest]
33+
os: [ubuntu-latest]
1134
runs-on: ${{ matrix.os }}
1235
steps:
1336
- name: Install Swift
@@ -23,4 +46,4 @@ jobs:
2346
- name: Build (Release)
2447
run: swift build -c release
2548
- name: Test (Debug)
26-
run: swift test -c debug
49+
run: swift test -c debug

0 commit comments

Comments
 (0)