-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (41 loc) · 1.55 KB
/
test-or-build.yaml
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
name: Test or Build
on:
push:
branches:
- main
jobs:
test-or-build:
strategy:
matrix:
scheme: ["Nuke-AVIF-Plugin iOS", "Nuke-AVIF-Plugin macOS", "Nuke-AVIF-Plugin tvOS", "Nuke-AVIF-Plugin watchOS"]
xcode-version: [11.5]
include:
- scheme: Nuke-AVIF-Plugin iOS
platform: iOS
xcode-version: 11.5
destination: platform=iOS Simulator,OS=13.5,name=iPhone 11
command: test
- scheme: Nuke-AVIF-Plugin macOS
platform: Mac
xcode-version: 11.5
destination: arch=x86_64
command: test
- scheme: Nuke-AVIF-Plugin tvOS
platform: tvOS
xcode-version: 11.5
destination: platform=tvOS Simulator,OS=13.4,name=Apple TV 4K
command: test
- scheme: Nuke-AVIF-Plugin watchOS
platform: watchOS
xcode-version: 11.5
destination: platform=watchOS Simulator,OS=6.2.1,name=Apple Watch Series 5 - 44mm
command: build
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode-version }}.app/Contents/Developer'
- run: carthage bootstrap --platform ${{ matrix.platform }}
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: ${{ matrix.command }}
run: set -o pipefail && xcodebuild ${{ matrix.command }} -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" -configuration Debug | xcpretty -c