@@ -40,113 +40,5 @@ jobs:
4040 uses : ./.github/actions/setup
4141
4242 - name : Build package
43- run : npm run prepare
43+ run : npm run build
4444
45- build-android :
46- runs-on : ubuntu-latest
47- env :
48- TURBO_CACHE_DIR : .turbo/android
49- steps :
50- - name : Checkout
51- uses : actions/checkout@v3
52- with :
53- submodules : ' recursive'
54- - name : Setup
55- uses : ./.github/actions/setup
56-
57- - name : Cache turborepo for Android
58- uses : actions/cache@v3
59- with :
60- path : ${{ env.TURBO_CACHE_DIR }}
61- key : ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
62- restore-keys : |
63- ${{ runner.os }}-turborepo-android-
64-
65- - name : Check turborepo cache for Android
66- run : |
67- TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
68-
69- if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
70- echo "turbo_cache_hit=1" >> $GITHUB_ENV
71- fi
72-
73- - name : Install JDK
74- if : env.turbo_cache_hit != 1
75- uses : actions/setup-java@v3
76- with :
77- distribution : ' zulu'
78- java-version : ' 17'
79-
80- - name : Finalize Android SDK
81- if : env.turbo_cache_hit != 1
82- run : |
83- /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
84-
85- - name : Cache Gradle
86- if : env.turbo_cache_hit != 1
87- uses : actions/cache@v3
88- with :
89- path : |
90- ~/.gradle/wrapper
91- ~/.gradle/caches
92- key : ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
93- restore-keys : |
94- ${{ runner.os }}-gradle-
95-
96- - name : Build example for Android
97- env :
98- JAVA_OPTS : " -XX:MaxHeapSize=6g"
99- run : |
100- npm turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
101-
102- build-ios :
103- runs-on : macos-14
104- env :
105- TURBO_CACHE_DIR : .turbo/ios
106- steps :
107- - name : Checkout
108- uses : actions/checkout@v3
109- with :
110- submodules : ' recursive'
111-
112- - name : Setup
113- uses : ./.github/actions/setup
114-
115- - name : Cache turborepo for iOS
116- uses : actions/cache@v3
117- with :
118- path : ${{ env.TURBO_CACHE_DIR }}
119- key : ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
120- restore-keys : |
121- ${{ runner.os }}-turborepo-ios-
122-
123- - name : Check turborepo cache for iOS
124- run : |
125- TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
126-
127- if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
128- echo "turbo_cache_hit=1" >> $GITHUB_ENV
129- fi
130-
131- - name : Cache cocoapods
132- if : env.turbo_cache_hit != 1
133- id : cocoapods-cache
134- uses : actions/cache@v3
135- with :
136- path : |
137- **/ios/Pods
138- key : ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
139- restore-keys : |
140- ${{ runner.os }}-cocoapods-
141-
142- - name : Install cocoapods
143- if : env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
144- run : |
145- cd example/ios
146- pod install
147- env :
148- NO_FLIPPER : 1
149-
150- - name : Build example for iOS
151- run : |
152- npm turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
0 commit comments