-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (49 loc) · 1.43 KB
/
swift.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
44
45
46
47
48
49
50
51
name: Build and Test
on:
push:
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- swift:5.9.2-focal
- swift:5.10-jammy
- swift:5.10.1-noble
container: ${{ matrix.image }}
steps:
- name: Install SQLite
run: |
apt-get -qq update
apt-get -y -qq install libsqlite3-dev
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Override Package.swift
run: cp .github/_support/Package.swift .github/_support/Package\@swift-5.swift .
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
- name: Run Tests
run: swift test
nextstep:
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- name: Checkout Repository
uses: actions/checkout@v2
- name: Log Swift Version
run: swift --version
- name: Install Override Package.swift
run: cp .github/_support/Package.swift .github/_support/Package\@swift-5.swift .
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
- name: Run Tests
run: swift test