forked from react-native-maps/react-native-maps
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 1.05 KB
/
androidBuild.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
40
41
42
43
name: Android build
on:
pull_request:
jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Setup Android SDK
uses: amyu/setup-android@v4
with:
cache-disabled: true
sdk-version: 34
build-tools-version: 33.0.2
- name: Check out repository code
uses: actions/checkout@v3
- name: Clear Gradle Cache
run: rm -rf $HOME/.gradle/caches/
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn
- name: Install dependencies
run: yarn --cwd example --frozen-lockfile
- name: Write local.properties
run: echo MAPS_API_KEY=your_api_key_here >> example/android/local.properties
- name: Build Android
run: cd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug