-
Notifications
You must be signed in to change notification settings - Fork 297
38 lines (33 loc) · 1.14 KB
/
xcodebuild.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
name: Xcode-Build
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
build:
runs-on: macOS-latest
strategy:
matrix:
scheme: ["CBL_ObjC", "CBL_Swift"]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: "Build-for-testing"
env:
SCHEME: ${{ matrix.scheme }}
platform: ${{ 'iOS Simulator' }}
run: |
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | sed 's/Simulator//g' | awk '{$1=$1;print}'`
xcodebuild build-for-testing -scheme "${SCHEME}" -project CouchbaseLite.xcodeproj -destination "platform=$platform,name=$device"
- name: "Test"
env:
SCHEME: ${{ matrix.scheme }}
platform: ${{ 'iOS Simulator' }}
run: |
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | sed 's/Simulator//g' | awk '{$1=$1;print}'`
xcodebuild test-without-building -scheme "${SCHEME}" -project CouchbaseLite.xcodeproj -destination "platform=$platform,name=$device"