-
Notifications
You must be signed in to change notification settings - Fork 297
40 lines (38 loc) · 1.09 KB
/
xcodebuild-mac.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
name: macOS
on:
push:
branches:
- 'master'
- 'release/**'
pull_request:
branches:
- 'master'
- 'release/**'
jobs:
build:
name: build-and-test
runs-on: macOS-latest
strategy:
matrix:
scheme: ["CBL_ObjC", "CBL_Swift"]
platform: ["platform=macOS", "platform=macOS,variant=Mac Catalyst"]
arch: ["x86_64"]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: "Build-for-testing"
env:
SCHEME: ${{ matrix.scheme }}
PLATFORM: ${{ matrix.platform }}
ARCH: ${{ matrix.arch }}
run: |
xcodebuild build-for-testing -scheme "${SCHEME}" -project CouchbaseLite.xcodeproj -destination "${PLATFORM},arch=${ARCH}"
- name: "Test"
env:
SCHEME: ${{ matrix.scheme }}
PLATFORM: ${{ matrix.platform }}
ARCH: ${{ matrix.arch }}
run: |
xcodebuild test-without-building -scheme "${SCHEME}" -project CouchbaseLite.xcodeproj -destination "${PLATFORM},arch=${ARCH}"