Skip to content

Commit 808cd41

Browse files
authored
Create build.yml
1 parent 7598c37 commit 808cd41

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build DEX
2+
3+
on:
4+
push:
5+
paths:
6+
- 'plugin/**'
7+
- '.github/workflows/build.yml'
8+
pull_request:
9+
paths:
10+
- 'plugin/**'
11+
12+
jobs:
13+
build-dex:
14+
runs-on: ubuntu-latest
15+
16+
env:
17+
ANDROID_HOME: /usr/local/lib/android/sdk
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v4
25+
with:
26+
distribution: 'temurin'
27+
java-version: 17
28+
29+
- name: Set up Android SDK
30+
uses: android-actions/setup-android@v3
31+
32+
- name: Grant execute permissions to gradlew
33+
run: chmod +x ./gradlew
34+
35+
- name: Build DEX file
36+
working-directory: plugin
37+
run: ./gradlew build-dex
38+
39+
- name: Upload DEX artifact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: classes-dex
43+
path: plugin/build/classes.dex

0 commit comments

Comments
 (0)