-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.11 KB
/
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
40
41
42
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-on-macos:
strategy:
matrix:
xcode-version: ['16.0', '15.4', '15.2', '14.3.1']
runs-on: macos-latest
timeout-minutes: 3
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:
strategy:
matrix:
swift-version: ['6.0-snapshot', '5.10.1', '5.9.2', '5.8.1']
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- name: Install Swift ${{ matrix.swift-version }}
run: |
curl -L https://swiftlang.github.io/swiftly/swiftly-install.sh | bash -s -- -y
swiftly install ${{ matrix.swift-version }}
- name: Run swift --version
run: swift --version
- name: Run swift build
run: swift build
- name: Run swift test
if: matrix.swift-version == '6.0-snapshot'
run: swift test --enable-swift-testing