Skip to content

Commit

Permalink
Test include react_native_ios
Browse files Browse the repository at this point in the history
  • Loading branch information
IniZio committed Mar 21, 2024
1 parent eecbbce commit fafca6f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@ jobs:

# react_native_ios cannot be built on simulator due to WeChat SDK

test_react_native_ios:
if: ${{ github.event_name == 'pull_request' }}
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: "./.tool-versions"
- run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
- run: npm ci
- run: npm run build
- working-directory: ./example/reactnative
run: yarn
- working-directory: ./example/reactnative
# Install cocoapods from the Gemfile
run: bundle install
- working-directory: ./example/reactnative
# Run the specific cocoapods
run: bundle exec pod install --project-directory=ios
- name: Run xcodebuild
working-directory: ./example/reactnative/ios
run: xcodebuild -quiet -workspace reactNativeExample.xcworkspace -scheme reactNativeExample -sdk iphonesimulator build
test_react_native_android:
if: ${{ github.event_name == 'pull_request' }}
# When we change the runner image, the available Android build tools versions will also change.
Expand Down
4 changes: 4 additions & 0 deletions example/reactnative/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@ target 'reactNativeExample' do
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)

installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
EXCLUDED_ARCHS = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -664,7 +665,8 @@
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
EXCLUDED_ARCHS = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
Expand Down

0 comments on commit fafca6f

Please sign in to comment.