-
Notifications
You must be signed in to change notification settings - Fork 78
43 lines (40 loc) · 930 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
40
41
42
43
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
macos_tests:
runs-on: macos-12
strategy:
matrix:
xcode:
- "14.2" # Swift 5.7.2
command:
- test
# - benchmarks
steps:
- uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: System
run: system_profiler SPHardwareDataType
- name: Run ${{ matrix.command }}
run: make ${{ matrix.command }}
ubuntu_tests:
name: Ubuntu (Swift ${{ matrix.swift }})
runs-on: ubuntu-20.04
strategy:
matrix:
swift:
- '5.9'
steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- run: swift test