This repository was archived by the owner on Feb 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
74 lines (64 loc) · 2.13 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on:
pull_request:
branches: [master]
schedule:
- cron: "0 7 * * *"
workflow_dispatch: ~
jobs:
swift-build:
runs-on: macos-11
steps:
- run: sudo xcode-select -switch /Applications/Xcode_13.2.1.app
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: spm-cache-key
with:
path: README.md
key: key-${{ runner.os }}-spm-13.2.1-${{ hashFiles('**/Package.swift') }}
- if: steps.spm-cache-key.outputs.cache-hit != 'true'
run: swift build
build-deps:
runs-on: macos-11
steps:
- run: sudo xcode-select -switch /Applications/Xcode_13.2.1.app
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: carthage-cache-key
with:
path: README.md
key: key-${{ runner.os }}-carthage-13.2.1-${{ hashFiles('**/Cartfile.resolved') }}
- if: steps.carthage-cache-key.outputs.cache-hit != 'true'
uses: actions/cache@v2
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-13.2.1-${{ hashFiles('**/Cartfile.resolved') }}
- if: steps.carthage-cache-key.outputs.cache-hit != 'true'
run: make build-deps
test-ios:
runs-on: macos-11
steps:
- run: sudo xcode-select -switch /Applications/Xcode_12.4.app
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-12.4-${{ hashFiles('**/Cartfile.resolved') }}
- if: steps.carthage-cache.outputs.cache-hit != 'true'
run: make build-ios
- run: make test-ios DESTINATION_OS=14.4 DESTINATION_NAME='iPhone 12 mini'
test-macos:
needs: build-deps
runs-on: macos-11
steps:
- run: sudo xcode-select -switch /Applications/Xcode_13.2.1.app
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-13.2.1-${{ hashFiles('**/Cartfile.resolved') }}
- if: steps.carthage-cache.outputs.cache-hit == 'true'
run: make test-macos