Skip to content

Commit a445b27

Browse files
authored
Update android.yml
1 parent b20f0d3 commit a445b27

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/android.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,28 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
- name: Cache Gradle dependencies
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/.gradle/caches
22+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
23+
restore-keys: |
24+
${{ runner.os }}-gradle-
25+
1826
- name: Set up JDK 17
1927
uses: actions/setup-java@v4
2028
with:
2129
java-version: '17'
2230
distribution: 'temurin'
23-
cache: gradle
2431

2532
- name: Grant execute permission for gradlew
2633
run: chmod +x gradlew
2734

35+
- name: Clean Build
36+
run: ./gradlew clean
37+
2838
- name: Build with Gradle
29-
run: ./gradlew build -x lint --warning-mode all
39+
run: ./gradlew build -x lint --info
3040

3141
- name: Upload build artifacts
3242
uses: actions/upload-artifact@v4
@@ -38,4 +48,4 @@ jobs:
3848
uses: actions/upload-artifact@v4
3949
with:
4050
name: lint-report
41-
path: app/build/reports/lint-results-debug.html
51+
path: app/build/reports/lint-results-debug.html

0 commit comments

Comments
 (0)