forked from Wadamzmail/CodeAssist-Unofficial
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.07 KB
/
Copy pathdebug.yml
File metadata and controls
45 lines (36 loc) · 1.07 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
name: Android CI Debug
permissions:
contents: read
on:
#push:
# branches: ['main', 'editor']
pull_request:
# branches: ['main', 'editor']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean && ./gradlew assembleDebug --warning-mode all
- name: Upload Gradle Problem Report
uses: actions/upload-artifact@v6
with:
name: gradle-problem-report-${{ matrix.build_type }}-${{ github.run_id }}
path: build/reports/problems/
if-no-files-found: warn
- name: Upload debug apk
uses: actions/upload-artifact@v6
if: ${{ !github.head_ref }}
with:
name: apk-debug
path: app/build/outputs/apk/debug/app-debug.apk