-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 939 Bytes
/
swift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-knit-swift-5:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: swift-actions/setup-swift@v2.1.0
with:
swift-version: "5.10"
- name: Build Knit
run: swift build -v
- name: Run Knit tests
run: swift test -v
# Enable below when issue is resolved: https://github.com/swift-actions/setup-swift/issues/683
# build-knit-swift-6:
#
# runs-on: macos-latest
#
# steps:
# - uses: actions/checkout@v4.2.2
# - uses: swift-actions/setup-swift@v2.1.0
# with:
# swift-version: "6.0"
# - name: Build Knit
# run: swift build -v
# - name: Run Knit tests
# run: swift test -v