Skip to content

Commit

Permalink
Upgrade build versions
Browse files Browse the repository at this point in the history
  • Loading branch information
IniZio committed Mar 21, 2024
1 parent 9c83b98 commit 47c03d5
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 4 deletions.
85 changes: 83 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,87 @@ jobs:
- run: npm run bundle
if: ${{ !cancelled() }}

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.
# We need to update build.gradle too.
# See https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: "./.tool-versions"
- run: npm ci
- run: npm run build
- working-directory: ./example/reactnative
run: yarn
- name: Build unsigned APK
working-directory: ./example/reactnative/android
run: ./gradlew :app:assembleRelease

test_capacitor_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/capacitor
run: npm ci
- working-directory: ./example/capacitor
run: npm run build
- working-directory: ./example/capacitor
run: npx cap sync
- name: Run xcodebuild
working-directory: ./example/capacitor/ios/App
run: xcodebuild -quiet -workspace App.xcworkspace -scheme App -sdk iphonesimulator build
test_capacitor_android:
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: npm ci
- run: npm run build
- working-directory: ./example/capacitor
run: npm ci
- working-directory: ./example/capacitor
run: npm run build
- working-directory: ./example/capacitor
run: npx cap sync
- name: Build unsigned APK
working-directory: ./example/capacitor/android
run: ./gradlew :app:assembleRelease

react_native_ios:
if: github.ref == 'refs/heads/master'
needs: test
Expand All @@ -39,7 +120,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: "./.tool-versions"
- run: sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
- run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
- run: npm install -g appcenter-cli
- run: npm ci
- run: npm run build
Expand Down Expand Up @@ -151,7 +232,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: "./.tool-versions"
- run: sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
- run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
- run: npm install -g appcenter-cli
- run: npm ci
- run: npm run build
Expand Down
3 changes: 3 additions & 0 deletions example/reactnative/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@ 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*]"] = "i386 arm64"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -664,7 +664,7 @@
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
Expand Down

0 comments on commit 47c03d5

Please sign in to comment.