-
Notifications
You must be signed in to change notification settings - Fork 57
42 lines (36 loc) · 1.24 KB
/
xcode.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
name: Build on Xcode
on:
push:
branches: '**'
pull_request:
branches: '**'
jobs:
build:
name: Build ${{ matrix.scheme }} for ${{ matrix.sdk }} on Xcode ${{ matrix.xcode }}
runs-on: macos-11
strategy:
fail-fast: false
matrix:
scheme: [BetterSafariView]
sdk: [iphoneos, macosx, watchos]
xcode: ['13.0', '12.5.1', '11.7']
include:
- scheme: BetterSafariViewDemo (iOS)
sdk: iphonesimulator
xcode: '13.0'
- scheme: BetterSafariViewDemo (iOS)
sdk: iphonesimulator
xcode: '12.5.1'
- scheme: BetterSafariViewDemo (macOS)
sdk: macosx
xcode: '13.0'
- scheme: BetterSafariViewDemo (macOS)
sdk: macosx
xcode: '12.5.1'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Switch developer directory to /Applications/Xcode_${{ matrix.xcode }}.app
run: sudo xcode-select --switch "/Applications/Xcode_${{ matrix.xcode }}.app"
- name: Build ${{ matrix.scheme }} for ${{ matrix.sdk }} on Xcode ${{ matrix.xcode }}
run: xcodebuild build-for-testing -scheme "${{ matrix.scheme }}" -sdk "${{ matrix.sdk }}"