-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (46 loc) · 1.51 KB
/
ios-example-build.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
53
54
55
name: iOS Example Build CI
on:
push:
branches: [ master ]
paths-ignore: [ '**.md', '**.MD' ]
pull_request:
branches: [ master ]
paths-ignore: [ '**.md', '**.MD' ]
workflow_dispatch:
jobs:
build:
name: Build "PhDownloader Example" scheme using any available iPhone simulator
runs-on: macos-13
defaults:
run:
working-directory: "PhDownloader Example"
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: 'latest-stable'
- name: Prepare and open Simulator
run: |
xcrun simctl create iphone-12-pro "iPhone 12 Pro"
xcrun simctl boot iphone-12-pro
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
- uses: actions/cache@v4
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Pod install
run: pod install
- name: Build
uses: sersoft-gmbh/xcodebuild-action@v3.0.0
with:
workspace: "PhDownloader Example/PhDownloader Example.xcworkspace"
scheme: "PhDownloader Example"
action: build
sdk: iphonesimulator
destination: platform=iOS Simulator,name=iphone-12-pro
configuration: Debug
build-settings: CODE_SIGNING_REQUIRED=NO