-
-
Notifications
You must be signed in to change notification settings - Fork 123
49 lines (40 loc) · 1.29 KB
/
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
name: Build
on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]
jobs:
build:
runs-on: macos-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: get pods home directory from cache
uses: actions/cache@v1
with:
path: ./iGlance/cocoaPodsHomeDir
key: ${{ runner.os }}--pods-homeDir-key-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}--pods-homeDir-key-
- name: get installed pods from cache
uses: actions/cache@v1
with:
path: ./iGlance/Pods
key: ${{ runner.os }}--pods-key-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}--pods-key-
- name: execute 'pod install'
working-directory: ./iGlance
run: pod install
env:
CP_HOME_DIR: ./cocoaPodsHomeDir
# update carthage
- name: execute 'carthage update'
working-directory: ./iGlance/iGlance
run: carthage update
- name: build project
working-directory: ./iGlance
run: xcodebuild -workspace iGlance.xcworkspace -scheme iGlance -config Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO