52 lines (42 loc) · 1.28 KB
/
example.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: Example App Actions
on:
push:
branches:
- master
- 'restler-*-branch'
- 'release/*'
pull_request:
branches:
- master
- 'restler-*-branch'
- 'release/*'
jobs:
build_example_app:
runs-on: macos-latest
env:
working-directory: "./Restler-Example"
BUNDLE_ID: ${{ secrets.BUNDLE_ID }}
DEVELOPMENT_TEAM_ID: ${{ secrets.DEVELOPMENT_TEAM_ID }}
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Install gettext
run: |
brew install gettext
brew link --force gettext
- name: Install mint
run: brew install mint
- name: Set up config files
run: envsubst < Restler-Example/Configuration/env_debug.xcconfig.tpl > Restler-Example/Configuration/Debug.xcconfig
working-directory: ${{ env.working-directory }}
shell: bash
- name: Install mint dependencies
run: mint bootstrap
- name: Clean
run: xcodebuild clean | xcpretty
working-directory: ${{ env.working-directory }}
shell: bash
- name: Build
run: xcodebuild build -scheme Restler-Example -project Restler-Example.xcodeproj | xcpretty --color
working-directory: ${{ env.working-directory }}
shell: bash