-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.02 KB
/
main.yml
File metadata and controls
44 lines (41 loc) · 1.02 KB
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
name: main
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macOS-latest
steps:
- uses: xavierLowmiller/xcodegen-action@1.1.1
with:
spec: project.yml
quiet: true
version: '2.15.1'
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: actions/cache@v2
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.1
- name: XcodeGen
run: xcodegen generate
- name: Bundle install
run: bundle
- name: Cocoapods install
run: bundle exec pod install
- name: Build App
run: xcodebuild -sdk iphonesimulator -scheme hack_iOS -workspace hack_iOS.xcworkspace