Skip to content

Refactor App.js for improved structure and functionality #18

Refactor App.js for improved structure and functionality

Refactor App.js for improved structure and functionality #18

Workflow file for this run

name: iOS CI/CD
on:
workflow_dispatch:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
permissions:
contents: read
jobs:
ios-build:
name: Build iOS Archive
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install npm dependencies
run: npm install
- name: Patch React Native boost podspec
run: |
echo "Before patch:"
grep -n "boost_1_76_0.tar.bz2" node_modules/react-native/third-party-podspecs/boost.podspec || true
perl -0pi -e 's#https://boostorg\.jfrog\.io/artifactory/main/release/1\.76\.0/source/boost_1_76_0\.tar\.bz2#https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2#g' node_modules/react-native/third-party-podspecs/boost.podspec
echo "After patch:"
grep -n "boost_1_76_0.tar.bz2" node_modules/react-native/third-party-podspecs/boost.podspec || true
- name: Clean CocoaPods state
run: |
cd ios
pod deintegrate || true
rm -rf Pods Podfile.lock
pod cache clean --all || true
- name: Install CocoaPods dependencies
run: |
cd ios
pod install --repo-update --verbose
- name: Build iOS archive
run: |
xcodebuild \
-workspace ios/rnBridging.xcworkspace \
-scheme rnBridging \
-configuration Release \
-sdk iphoneos \
-destination generic/platform=iOS \
-archivePath ios/build/rnBridging.xcarchive \
archive \
CODE_SIGNING_ALLOWED=NO
- name: Upload iOS archive artifact
uses: actions/upload-artifact@v4
with:
name: ios-xcarchive
path: ios/build/rnBridging.xcarchive
if-no-files-found: error