This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
Release SecPKCS12Import items #16117
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build React Native example | |
# This action runs on 'git push' and PRs | |
on: [push, pull_request] | |
jobs: | |
build-react-native-example-ios: | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: react-native/ReactNativeFlipperExample | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: '18.x' | |
- uses: maxim-lobanov/setup-cocoapods@v1.3.0 | |
with: | |
# Path to Podfile.lock file to determine Cocoapods version | |
# n.b. doesn't seem to respect cwd: | |
podfile-path: react-native/ReactNativeFlipperExample/ios/Podfile.lock | |
- name: Install yarn dependencies | |
run: yarn install --ignore-scripts | |
- name: Install react-native-flipper | |
run: yarn relative-deps | |
- name: Install pod dependencies | |
run: cd ios && pod install --repo-update | |
- name: Build React Native iOS Example debug app | |
run: | | |
cd ios | |
IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") && echo $IPHONESIMULATOR | |
xcodebuild -workspace ReactNativeFlipperExample.xcworkspace -configuration Debug -scheme ReactNativeFlipperExample -sdk $IPHONESIMULATOR EXCLUDED_ARCHS="arm64" | |
build-react-native-example-android: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: react-native/ReactNativeFlipperExample | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: '18.x' | |
- name: set up JDK | |
uses: actions/setup-java@v3.11.0 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Compute build cache | |
run: ${GITHUB_WORKSPACE}/scripts/checksum-android.sh checksum-android.txt | |
- uses: actions/cache@v3.3.1 | |
with: | |
path: | | |
~/.gradle/caches/modules-* | |
~/.gradle/caches/jars-* | |
~/.gradle/caches/build-cache-* | |
key: gradle-${{ hashFiles('checksum-android.txt') }} | |
- name: Install yarn dependencies | |
run: yarn install --ignore-scripts | |
- name: Install react-native-flipper | |
run: yarn relative-deps | |
- name: Build React Native Android Example debug app | |
run: | | |
mkdir -p android/app/src/main/assets | |
yarn react-native bundle --platform android --dev true --entry-file index.native.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res | |
cd android && ./gradlew assembleDebug | |
build-react-native-example-windows: | |
runs-on: windows-2019 | |
defaults: | |
run: | |
working-directory: react-native/ReactNativeFlipperExample | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- uses: actions/setup-node@v3.6.0 | |
with: | |
node-version: '18.x' | |
- name: Set up NuGet.exe | |
- uses: NuGet/setup-nuget@v1.2.0 | |
with: | |
nuget-version: '5.x' | |
- name: Add msbuild to PATH | |
- uses: microsoft/setup-msbuild@v1.3.1 | |
- name: Gather environment info | |
run: npx envinfo | |
- name: Install vcpkg packages | |
run: vcpkg install openssl:x64-uwp openssl:arm-uwp | |
- name: Integrate vcpkg | |
run: vcpkg integrate install | |
- name: Install yarn dependencies (react-native-flipper) | |
run: yarn install | |
working-directory: react-native/react-native-flipper | |
- name: Nuget restore (react-native-flipper) | |
run: nuget install ReactNativeFlipper/packages.config | |
working-directory: react-native/react-native-flipper/windows | |
- name: Install yarn dependencies | |
run: yarn install | |
- name: Install react-native-flipper | |
run: yarn relative-deps | |
- name: Build React Native Windows Example debug app | |
shell: powershell | |
run: npx react-native run-windows --logging --no-autolink --no-packager --no-deploy --no-launch --arch x64 |