Skip to content

Commit 0c56db3

Browse files
committed
update github workflow
1 parent 68ef381 commit 0c56db3

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/android.yml

+23-9
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,26 @@ on:
99
branches: [ "master" ]
1010

1111
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout sources
16-
uses: actions/checkout@v4
17-
- name: Setup Gradle
18-
uses: gradle/gradle-build-action@v3
19-
- name: Build with Gradle
20-
run: ./gradlew build
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: set up JDK 11
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
23+
cache: gradle
24+
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x gradlew
27+
- name: Build with Gradle
28+
run: ./gradlew build
29+
30+
- name: Upload build artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: Package
34+
path: build/libs

0 commit comments

Comments
 (0)