diff --git a/.github/workflows/react-native-example.yml b/.github/workflows/react-native-example.yml index ab555bc1d..03ab0071f 100644 --- a/.github/workflows/react-native-example.yml +++ b/.github/workflows/react-native-example.yml @@ -60,3 +60,37 @@ jobs: 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@v2 + - uses: actions/setup-node@v2.1.5 + with: + node-version: 14.x + - uses: nuget/setup-nuget@v1 + with: + nuget-version: '5.x' + - uses: microsoft/setup-msbuild@v1.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