-
Notifications
You must be signed in to change notification settings - Fork 33
34 lines (28 loc) · 750 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
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
macos:
runs-on: macos-13-xlarge
strategy:
matrix:
xcode:
- "14.3.1" # Swift 5.8.1
name: "macOS (Xcode ${{ matrix.xcode }})"
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-xcode-${{ matrix.xcode }}-
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v