File tree Expand file tree Collapse file tree 2 files changed +86
-1
lines changed Expand file tree Collapse file tree 2 files changed +86
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ android :
11+ name : Build Android App
12+ runs-on : ubuntu-latest
13+
14+ env :
15+ SKIP_YARN_COREPACK_CHECK : 0
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Setup Java
21+ uses : actions/setup-java@v4
22+ with :
23+ distribution : ' zulu'
24+ java-version : ' 17'
25+
26+ - name : Setup Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : ' lts/*'
30+ cache : ' yarn'
31+
32+ - name : Install root dependencies
33+ run : yarn install
34+
35+ - name : Install example dependencies
36+ run : |
37+ cd example
38+ yarn install
39+ cd ..
40+
41+ - name : Build Android App
42+ run : |
43+ cd example/kotlin
44+ ./gradlew assembleDebug
45+
46+ ios :
47+ name : Build iOS App
48+ runs-on : macos-latest
49+
50+ env :
51+ SKIP_YARN_COREPACK_CHECK : 0
52+
53+ steps :
54+ - uses : actions/checkout@v4
55+
56+ - name : Setup Node.js
57+ uses : actions/setup-node@v4
58+ with :
59+ node-version : ' lts/*'
60+ cache : ' yarn'
61+
62+ - name : Setup Ruby
63+ uses : ruby/setup-ruby@v1
64+ with :
65+ ruby-version : ' 3.2'
66+ bundler-cache : true
67+
68+ - name : Install root dependencies
69+ run : yarn install
70+
71+ - name : Install example dependencies
72+ run : |
73+ cd example
74+ yarn install
75+ cd ..
76+
77+ - name : Install pods
78+ run : |
79+ cd example/swift
80+ pod install
81+
82+ - name : Build iOS App
83+ run : |
84+ cd example/swift
85+ xcodebuild -workspace SwiftExample.xcworkspace -scheme SwiftExample -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15' build CODE_SIGNING_ALLOWED=NO
Original file line number Diff line number Diff line change 66# http://www.gradle.org/docs/current/userguide/build_environment.html
77# Specifies the JVM arguments used for the daemon process.
88# The setting is particularly useful for tweaking memory settings.
9- org.gradle.jvmargs =-Xmx1536m
9+ org.gradle.jvmargs =-Xmx4g -XX:MaxMetaspaceSize=512m
1010# When configured, Gradle will run in incubating parallel mode.
1111# This option should only be used with decoupled projects. More details, visit
1212# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
You can’t perform that action at this time.
0 commit comments