Skip to content

Commit 103dabd

Browse files
authored
Create android.yml
1 parent ddc5e38 commit 103dabd

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/android.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
test:
12+
name: Run Unit Tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
- name: Unit tests
21+
run: bash ./gradlew test --stacktrace
22+
build:
23+
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v1
28+
- name: set up JDK 1.8
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: 1.8
32+
cache: gradle
33+
34+
- name: Grant execute permission for gradlew
35+
run: chmod +x gradlew
36+
- name: Build pluginbasicutils
37+
run: bash ./gradlew assemble --stacktrace
38+
- name: Upload debug pluginbasicutils
39+
uses: actions/upload-artifact@v1
40+
with:
41+
name: pluginbasicutils-debug
42+
path: pluginbasicutils/build/outputs/aar/pluginbasicutils-debug.aar
43+
- name: Upload release pluginbasicutils
44+
uses: actions/upload-artifact@v1
45+
with:
46+
name: pluginbasicutils-release
47+
path: pluginbasicutils/build/outputs/aar/pluginbasicutils-release.aar

0 commit comments

Comments
 (0)