-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (31 loc) · 1.41 KB
/
debug.yml
File metadata and controls
40 lines (31 loc) · 1.41 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
name: Debug Builds
on: [ push ] # run on all pushes on any branch
# Cancel any in-progress runs of this workflow if a new run is triggered within the same branch or PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info.
steps:
- uses: actions/checkout@v4
- name: Check licenses of dependencies are valid
run: ./gradlew licensee
- name: Build Debug APK
run: ./gradlew assembleDevDebug --stacktrace
- name: Run unit tests
run: ./gradlew test --stacktrace
- name: Upload Dev Debug APK to Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ github.run_number }}-dev-debug-apk
path: |
${{ github.workspace }}/app/build/outputs/apk/dev/debug/app-dev-debug.apk
- name: Build Prod APK
run: ./gradlew assembleProdDebug --stacktrace
- name: Upload Prod Debug APK to Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}_${{ github.run_number }}-prod-debug-apk
path: |
${{ github.workspace }}/app/build/outputs/apk/prod/debug/app-prod-debug.apk