-
-
Notifications
You must be signed in to change notification settings - Fork 988
35 lines (35 loc) · 979 Bytes
/
android-build.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
name: Test Android build
on:
pull_request:
paths:
- '.github/workflows/android-build.yml'
- 'android/**'
- 'Common/**'
- 'Example/android/**'
- 'FabricExample/android/**'
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
working-directory: [example, FabricExample]
concurrency:
group: android-${{ matrix.working-directory }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: Install node dependencies
working-directory: ${{ matrix.working-directory }}
run: yarn
- name: Build app
working-directory: ${{ matrix.working-directory }}/android
run: ./gradlew assembleDebug --console=plain -PreactNativeArchitectures=arm64-v8a