Skip to content

Commit 712f497

Browse files
author
Gazala Muhamed
committed
Update workflow
1 parent 9a301fd commit 712f497

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/android.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,38 @@
11
name: Codeboard Android CI New
2+
23
on: [push]
34

45
jobs:
56
build:
6-
77
runs-on: windows-latest
88

99
steps:
10-
- uses: actions/checkout@v1
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Java 17
14+
uses: actions/setup-java@v4
15+
with:
16+
distribution: 'temurin'
17+
java-version: '17'
18+
19+
- name: Cache Gradle files
20+
uses: actions/cache@v3
21+
with:
22+
path: |
23+
~/.gradle/caches
24+
~/.gradle/wrapper
25+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
26+
restore-keys: |
27+
${{ runner.os }}-gradle-
28+
1129
- name: Build with Gradle
1230
run: |
13-
$env:JAVA_HOME = "$env:JAVA_HOME_17_X64"
14-
./gradlew assemble
15-
dir .
16-
- uses: actions/upload-artifact@v4
31+
./gradlew.bat assemble --stacktrace
32+
33+
- name: Upload APKs
34+
uses: actions/upload-artifact@v4
1735
with:
1836
name: apk
19-
path: app/build/outputs
20-
retention-days: 1
37+
path: app/build/outputs/apk/
38+
retention-days: 1

0 commit comments

Comments
 (0)