-
Notifications
You must be signed in to change notification settings - Fork 78
42 lines (38 loc) · 1.05 KB
/
ci.yaml
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: [pull_request]
jobs:
# TODO: enable once code is formatted
# SwiftLint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: SwiftLint
# uses: norio-nomura/action-swiftlint@3.1.0
# with:
# args: --strict
macOS:
runs-on: macOS-13
env:
XCODE_VERSION: ${{ '14.2' }}
steps:
- name: Select Xcode
run: "sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app"
- name: Checkout
uses: actions/checkout@v1
- name: Build and Run
run: swift build -c release
- name: Test
run: swift test
- name: Build Backend
run: swift build --product XCMetricsBackend -c release
linux:
runs-on: ubuntu-latest
container:
image: swift:5.7
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install zlib
run: apt-get update && apt-get install -y ruby zlib1g-dev libssl-dev
- name: Build Backend
run: swift build --product XCMetricsBackend -c release