-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 890 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-on-macos:
runs-on: macos-latest
strategy:
matrix:
xcode-version: ['16.0', '15.4', '15.2', '14.3.1']
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode-version }}.app
steps:
- uses: actions/checkout@v4
- name: Run swift build
run: swift build
- name: Run swift test
run: swift test
test-on-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Swift
run: |
curl -L https://swiftlang.github.io/swiftly/swiftly-install.sh | bash
swiftly install 5.6
swiftly use 5.6
- name: version
run: swift --version
- name: Run swift build
run: swift build
- name: Run swift test
run: swift test