Repository navigation
54 lines (44 loc) · 1.53 KB
/
Copy pathpr-full-debug-build.yml
File metadata and controls
54 lines (44 loc) · 1.53 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
44
45
46
47
48
49
50
51
52
53
54
name: PR Full Debug Build
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [cmp-rewrite]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pr-full-debug-build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
full-debug-build:
name: Build fullDebug APK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v6
- name: Prepare runtime properties
env:
LOCAL_PROPERTIES_BASE64: ${{ secrets.NUVIO_LOCAL_PROPERTIES_BASE64 }}
run: |
if [ -n "$LOCAL_PROPERTIES_BASE64" ]; then
printf '%s' "$LOCAL_PROPERTIES_BASE64" | base64 --decode > local.properties
sed -i -E '/^[[:space:]]*(sdk\.dir|NUVIO_RELEASE_STORE_FILE)[[:space:]]*=/d' local.properties
else
touch local.properties
fi
- name: Build fullDebug APK
run: ./gradlew :androidApp:assembleFullDebug -Pnuvio.android.distribution=full -Pnuvio.ios.distribution=appstore --stacktrace
- name: Upload fullDebug APK
uses: actions/upload-artifact@v7
with:
path: androidApp/build/outputs/apk/full/debug/androidApp-full-debug.apk
archive: false
if-no-files-found: error
retention-days: 7