Skip to content

Commit 416b814

Browse files
authored
Create build.yml
1 parent bba6f5d commit 416b814

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/build/build.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: [ "develop" ]
6+
7+
jobs:
8+
check:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: set up JDK
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '21'
18+
distribution: 'temurin'
19+
cache: gradle
20+
21+
- name: Grant execute permission for gradlew
22+
run: chmod +x gradlew
23+
24+
- name: Check build
25+
run: ./gradlew :vbpd-core:assembleRelease :vbpd:assembleRelease :vbpd-reflection:assembleRelease
26+
continue-on-error: true
27+
28+
- name: Save Gradle cache
29+
uses: actions/cache@v4
30+
continue-on-error: true
31+
with:
32+
path: |
33+
~/.gradle/caches
34+
~/.gradle/wrapper
35+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
36+
restore-keys: |
37+
${{ runner.os }}-gradle-
38+
39+
- name: Save build artifacts
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: vbpd-libs-builds
43+
path:
44+
vbpd/build/outputs/aar/*.aar
45+
vbpd-core/build/outputs/aar/*.aar
46+
vbpd-reflection/build/outputs/aar/*.aar
47+

0 commit comments

Comments
 (0)