-
Notifications
You must be signed in to change notification settings - Fork 332
23 lines (23 loc) · 929 Bytes
/
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
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm pack
- run: npx react-native init example
- run: cp index.js example/
- run: cp -r example-app example/
- run: npm i ../react-native-amap3d-0.0.0.tgz
working-directory: example
- run: npm i @react-native-picker/picker @react-navigation/native @react-navigation/native-stack react-native-safe-area-context react-native-screens
working-directory: example
- run: sed -i.backup -r 's/(enableSeparateBuildPerCPUArchitecture = )false/\1true/' build.gradle
working-directory: example/android/app
- run: ./gradlew assembleRelease
working-directory: example/android
- uses: actions/upload-artifact@v3
with:
name: example.apk
path: example/android/app/build/outputs/apk/release/app-arm64-v8a-release.apk