-
Notifications
You must be signed in to change notification settings - Fork 538
82 lines (64 loc) · 1.85 KB
/
pr.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Pull request validation
on: pull_request
jobs:
valid-asset-names:
name: Validate Asset Names
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check asset directories are valid for Windows
run: |
ls assets | python3 -c """
import sys
assets_dir = sys.stdin.read().strip().split('\n')
invalid_asset_dirs = []
for dir in assets_dir:
if dir.endswith(' '):
invalid_asset_dirs.append(dir)
if invalid_asset_dirs:
print('Invalid asset directories, remove the trailing space')
print(invalid_asset_dirs)
exit(1)
"""
build-ios:
name: Build iOS library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node 11
uses: actions/setup-node@v1
with:
node-version: 11.x
- run: npm install
working-directory: importer
- name: Run generate script
run: npm run deploy:ios
working-directory: importer
build-android:
name: Build Android library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node 11
uses: actions/setup-node@v1
with:
node-version: 11.x
- run: npm install
working-directory: importer
- name: Run generate script
run: npm run deploy:android
working-directory: importer
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
# https://github.com/marketplace/actions/gradle-command
- name: Build Android library
uses: eskatos/gradle-command-action@v1
with:
arguments: assembleRelease
build-root-directory: android
wrapper-directory: android
- name: Generate BUILD.gn file for Android
run: python3 generate_build_gn_android.py
working-directory: importer