-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.06 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
40
41
42
43
44
45
46
47
48
49
name: Android
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
example/node_modules
.yarn/cache
key: node-modules
- run: |
corepack enable
cd example && yarn install
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
.gradle
example/android/.gradle
~/.gradle/caches
key: gradle
- name: Build android example app
run: yarn build:android