-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (36 loc) · 1.17 KB
/
android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Android CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
environment: build
steps:
- uses: actions/checkout@v4
- name: set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
check-latest: true
- name: Build with Gradle
run: ./gradlew clean build
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVENCENTRALUSERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVENCENTRALPASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
REMOTE_CACHE_URL: ${{ secrets.REMOTE_CACHE_URL }}
REMOTE_CACHE_USER: ${{ secrets.REMOTE_CACHE_USER }}
REMOTE_CACHE_PASS: ${{ secrets.REMOTE_CACHE_PASS }}
- uses: actions/upload-artifact@v4
with:
name: Package
path: obd/build/outputs/aar