Skip to content

Commit 45f14e4

Browse files
authored
Update build.yml
1 parent 3d62cbe commit 45f14e4

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,35 @@ name: Android Plugin CI
22

33
on:
44
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
5+
branches:
6+
- main
7+
workflow_dispatch:
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
1213
steps:
13-
- uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
1416

15-
- name: Set up JDK 17
17+
- name: Set up JDK
1618
uses: actions/setup-java@v4
1719
with:
1820
distribution: 'temurin'
19-
java-version: 17
21+
java-version: '17'
2022

2123
- name: Set up Android SDK
2224
uses: android-actions/setup-android@v3
2325

2426
- name: Grant execute permission for gradlew
2527
run: chmod +x ./gradlew
2628

27-
- name: Build with Gradle
28-
run: ./gradlew :plugin:build :plugin:build-dex
29-
env:
30-
ANDROID_HOME: ${{ env.ANDROID_SDK_ROOT }}
29+
- name: Build DEX
30+
run: ./gradlew :plugin:build-dex
31+
32+
- name: Upload classes.dex artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: classes-dex
36+
path: plugin/build/classes.dex

0 commit comments

Comments
 (0)