-
Notifications
You must be signed in to change notification settings - Fork 115
46 lines (42 loc) · 961 Bytes
/
ci.yml
File metadata and controls
46 lines (42 loc) · 961 Bytes
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
library:
name: macOS
strategy:
matrix:
xcode: ['16.3']
config: ['debug', 'release']
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run ${{ matrix.config }} tests
run: swift test -c ${{ matrix.config }}
linux:
name: Linux
strategy:
matrix:
swift:
- '6.0'
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v4
- name: Install Build Dependencies
run: |
apt-get update
apt-get install -y libsqlite3-dev
- name: Build
run: swift build