File tree Expand file tree Collapse file tree 1 file changed +10
-22
lines changed
Expand file tree Collapse file tree 1 file changed +10
-22
lines changed Original file line number Diff line number Diff line change 1- name : Build DEX
1+ name : Android Plugin CI
22
33on :
44 push :
5- paths :
6- - ' plugin/**'
7- - ' .github/workflows/build.yml'
5+ branches : [ main ]
86 pull_request :
9- paths :
10- - ' plugin/**'
7+ branches : [ main ]
118
129jobs :
13- build-dex :
10+ build :
1411 runs-on : ubuntu-latest
15-
16- env :
17- ANDROID_HOME : /usr/local/lib/android/sdk
18-
1912 steps :
20- - name : Checkout code
21- uses : actions/checkout@v4
13+ - uses : actions/checkout@v4
2214
2315 - name : Set up JDK 17
2416 uses : actions/setup-java@v4
@@ -29,14 +21,10 @@ jobs:
2921 - name : Set up Android SDK
3022 uses : android-actions/setup-android@v3
3123
32- - name : Grant execute permissions to gradlew
24+ - name : Grant execute permission for gradlew
3325 run : chmod +x ./gradlew
3426
35- - name : Build DEX file
36- run : ./gradlew build-dex
37-
38- - name : Upload DEX artifact
39- uses : actions/upload-artifact@v4
40- with :
41- name : classes-dex
42- path : plugin/build/classes.dex
27+ - name : Build with Gradle
28+ run : ./gradlew :plugin:build :plugin:build-dex
29+ env :
30+ ANDROID_HOME : ${{ env.ANDROID_SDK_ROOT }}
You can’t perform that action at this time.
0 commit comments