-
Notifications
You must be signed in to change notification settings - Fork 4
81 lines (68 loc) · 2.24 KB
/
build_app.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Bulid app files
on:
workflow_dispatch:
inputs:
subdomain:
description: "Which subdomain you want to build the android app"
required: true
default: "sandbox"
jobs:
build_app:
runs-on: ubuntu-latest
env:
GITHUB_ACCESS_KEY: ${{ secrets.GH_ACCESS_KEY }}
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
API_ACCESS_KEY: ${{ secrets.API_ACCESS_KEY }}
steps:
- name: Validate subdomain
run: |
curl -f https://${{ github.event.inputs.subdomain }}.testpress.in/api/v2.5/admin/android/app-config/ -H "API-access-key: $API_ACCESS_KEY"
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Caching Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup ruby and fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Cache Zoom SDK files
id: zoom-cache
uses: actions/cache@v2
with:
path: |
./mobilertc
./commonlib
key: zoom_sdk_files
- name: Setup Zoom SDK
if: steps.zoom-cache.outputs.cache-hit != 'true'
run: |
wget https://media.testpress.in/static/android/zoom_sdk.zip
unzip -o ./zoom_sdk.zip
- name: Build app
run: |
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
bundle exec fastlane build_app_files subdomain:${{ github.event.inputs.subdomain }}
- name: Store app artifacts
uses: actions/upload-artifact@v4
with:
name: app
path: |
app/build/outputs/apk/release/app-release.apk
app/build/outputs/bundle/release/app-release.aab
app/build/outputs/apk/debug/app-debug.apk