-
Notifications
You must be signed in to change notification settings - Fork 117
52 lines (36 loc) · 1.56 KB
/
run-tests-WaterfallGridSample.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
name: WaterfallGridSample
on:
workflow_dispatch:
push:
jobs:
build:
name: Build and Test
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Set up Xcode version
run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
- name: Show current version of Xcode
run: xcodebuild -version
- name: Show Xcode embedded SDKs
run: xcodebuild -showsdks
- name: Show buildable schemes
run: xcodebuild -list
- name: Show eligible build destinations
run: xcodebuild -showdestinations -scheme WaterfallGrid
- name: Install Bundler
run: gem install bundler
- name: Install xcpretty
run: gem install xcpretty
- name: Build and run tests (iOS)
run: xcodebuild test -scheme WaterfallGrid -destination "platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro" | xcpretty
- name: Build (macOS)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,name=My Mac" | xcpretty
- name: Build (Mac Catalyst)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,variant=Mac Catalyst,name=My Mac" | xcpretty
- name: Build (tvOS)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=tvOS Simulator,OS=17.5,name=Apple TV" | xcpretty
- name: Build (watchOS)
run: xcodebuild build -scheme WaterfallGrid -destination "platform=watchOS Simulator,OS=10.5,name=Apple Watch Ultra 2 (49mm)" | xcpretty