-
-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (47 loc) · 1.31 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
name: Swift CI
on: [push]
jobs:
linuxBuild:
name: Swift ${{ matrix.swift-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
swift-version: [6.0.2]
os: [ubuntu-22.04]
steps:
- name: Install Swift
uses: YOCKOW/Action-setup-swift@v1
with:
swift-version: ${{ matrix.swift-version }}
- name: Checkout
uses: actions/checkout@v1
- name: Swift Package Information
run: |
swift --version
swift package show-dependencies
- name: Build
run: swift build --build-tests
- name: Test
run: swift test
- name: SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
env:
WORKING_DIRECTORY: Sources
macOSBuild:
name: macOS 14 - Latest Xcode
runs-on: macOS-14
steps:
- name: Configure Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 'latest-stable'
- name: Checkout
uses: actions/checkout@v1
- name: Swift Package Information
run: |
swift --version
swift package show-dependencies
- name: Build
run: swift build
- name: Test
run: swift test -Xlinker -rpath -Xlinker "$(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.9/macosx"