Skip to content

Commit 779e015

Browse files
committed
Disable debug builds in CI environments
- monitor Android/iOS debug metrics later - cleanup docs/comments
1 parent aefa4f3 commit 779e015

File tree

2 files changed

+39
-40
lines changed

2 files changed

+39
-40
lines changed

β€Ž.github/workflows/android.ymlβ€Ž

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
pull_request:
1414
branches: [ master ]
1515

16-
# Global envs
16+
# Global workflow envs
1717
# env:
1818
# ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/x.x.x
1919
# ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk/x.x.x
@@ -38,25 +38,28 @@ jobs:
3838
distribution: temurin
3939
cache: 'gradle'
4040

41-
- name: Install all project dependencies
41+
# yarn cache
42+
# node_modules cache
43+
44+
- name: Install deps and setup
4245
run: yarn && yarn setup
4346

4447
- name: npx react-native info
4548
run: npx react-native info
4649

47-
- name: Build application Debug APK with Gradle
48-
uses: gradle/gradle-build-action@v2.4.2
49-
with:
50-
arguments: assembleDebug
51-
build-root-directory: android
52-
53-
# Avoid release poisoned cache problems
54-
# Preserve hosted agent free disk space
55-
- name: Delete Android build pre-computed outputs
56-
uses: gradle/gradle-build-action@v2.4.2
57-
with:
58-
arguments: clean
59-
build-root-directory: android
50+
# - name: Build application Debug APK with Gradle
51+
# uses: gradle/gradle-build-action@v2.4.2
52+
# with:
53+
# arguments: assembleDebug
54+
# build-root-directory: android
55+
56+
# Avoid release poisoned cache problems
57+
# Preserve hosted agent free disk space
58+
# - name: Delete Android build pre-computed outputs
59+
# uses: gradle/gradle-build-action@v2.4.2
60+
# with:
61+
# arguments: clean
62+
# build-root-directory: android
6063

6164
- name: Build application Release APK with Gradle
6265
uses: gradle/gradle-build-action@v2.4.2

β€Ž.github/workflows/ios.ymlβ€Ž

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,36 @@ jobs:
1515

1616
- uses: actions/checkout@v3
1717

18-
# - uses: mikehardy/buildcache-action@v1
18+
# - uses: mikehardy/buildcache-action@v1
1919

20-
# yarn cache
21-
# node_modules cache
20+
# yarn cache
21+
# node_modules cache
2222

23-
- name: Install all project dependencies
23+
- name: Install deps and setup
2424
run: yarn && yarn setup
2525

2626
- name: npx react-native info
2727
run: npx react-native info
2828

29-
# - uses: ruby/setup-ruby@v1
30-
# with:
31-
# bundler-cache: true # bundle install and cache installed gems automatically
32-
# - run: bundle exec rake
29+
# - uses: ruby/setup-ruby@v1
30+
# with:
31+
# bundler-cache: true # bundle install and cache installed gems automatically
32+
# - run: bundle exec rake
3333

34-
# - uses: setup/cocoapods # cache
34+
# - uses: setup/cocoapods # cache
35+
# DerivedData cache
3536

36-
- name: Install pods
37-
run: cd ios && pod update hermes-engine --no-repo-update && cd ..
37+
# Debug
38+
# - name: Install pods (debug)
39+
# run: cd ios && pod update hermes-engine --no-repo-update && cd ..
40+
# - name: Build iOS (debug)
41+
# run: npx react-native run-ios --configuration Debug
3842

39-
- name: Build app for Debug
40-
run: npx react-native run-ios --configuration Debug
43+
# - name: Xcode clean
44+
# run: xcodebuild clean
4145

42-
# - name: Xcode clean
43-
# run: xcodebuild clean
44-
45-
- name: Install pods (prod)
46-
run: cd ios && PRODUCTION=1 pod install && cd ..
47-
# --repo-update
48-
# --clean-install
49-
50-
- name: Bundle app for release
51-
run: npx react-native bundle --entry-file='index.ts' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
52-
53-
- name: Build app for release
46+
# Release
47+
- name: Install pods (release)
48+
run: cd ios && PRODUCTION=1 pod install && cd .. # --clean-install --repo-update
49+
- name: Build iOS (release)
5450
run: npx react-native run-ios --configuration Release

0 commit comments

Comments
Β (0)