Skip to content

Commit

Permalink
ci(build): switch to new architecture, enable ios caching
Browse files Browse the repository at this point in the history
  • Loading branch information
QcFe committed Feb 12, 2025
1 parent 8822c7d commit dba6c29
Show file tree
Hide file tree
Showing 7 changed files with 837 additions and 168 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ jobs:
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_POLI_MOBILE_PW }}
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_DEV_PW }}
SUPPLY_GOOGLE_SERVICE_INFO_PLIST_PATH: "./GoogleService-Info.plist"
CCACHE_COMPILERCHECK: content
needs: configure
runs-on: [macos-latest]
steps:
Expand All @@ -243,6 +244,8 @@ jobs:
xcode-version: '15'
- name: Checkout
uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: Set .env
run:
echo "MAPBOX_TOKEN=${{ secrets.MAPBOX_TOKEN }}" >> .env
Expand Down Expand Up @@ -275,10 +278,6 @@ jobs:
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
- name: Install npm dependencies
run: npm install
#handled by npm on postinstall:
# - name: Ensure pods installed
# working-directory: ./ios
# run: bundle exec pod install
- name: Prepare fastlane
working-directory: ./ios
run: |
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
newArchEnabled=true

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
Expand Down
3 changes: 2 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ target 'students' do
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
:mac_catalyst_enabled => false,
:ccache_enabled => true
)

installer.pods_project.targets.each do |target|
Expand Down
Loading

0 comments on commit dba6c29

Please sign in to comment.