-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (57 loc) · 1.99 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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
xcode-build:
name: Xcode Build
runs-on: macOS-13
strategy:
matrix:
platform: ['iOS_17', 'iOS_16']
fail-fast: false
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Bundle Install
run: bundle install --gemfile=Example/Gemfile
- name: Select Xcode Version (15.1)
run: sudo xcode-select --switch /Applications/Xcode_15.1.app/Contents/Developer
if: matrix.platform == 'iOS_17'
- name: Select Xcode Version (14.3.1)
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
if: matrix.platform == 'iOS_16'
- name: Pod Install
run: bundle exec --gemfile=Example/Gemfile pod install --project-directory=Example
- name: Build and Test
run: Scripts/build.swift xcode ${{ matrix.platform }} `which xcpretty`
pod-lint:
name: Pod Lint
runs-on: macOS-13
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Bundle Install
run: bundle install --gemfile=Example/Gemfile
- name: Select Xcode Version
run: sudo xcode-select --switch /Applications/Xcode_15.1.app/Contents/Developer
- name: Checkout Aardvark Repo
uses: actions/checkout@v2
with:
repository: square/Aardvark
ref: develop/aardvark-4.0
path: Aardvark
- name: Update Pods Repo
run: bundle exec --gemfile=Example/Gemfile pod repo update
- name: Lint AardvarkReveal Podspec
run: bundle exec --gemfile=Example/Gemfile pod lib lint --verbose --fail-fast AardvarkReveal.podspec
swift-build:
name: Swift Build
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Swift Build
run: swift build --sdk "$(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk" --triple "arm64-apple-ios14.0-simulator"