/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/actions/test-ios-helloworld/action.yml
79 строк
3 KB
Riccardo Cipolleschi
Rename use-hermes-nightly.js to use-hermes-prebuilt.js (#56750)
11 май 2026, 22:55
11 май 2026, 22:55
f375135
Код
Авторство
О чём код?
name: test-ios-helloworld description: Test iOS Hello World inputs: use-frameworks: description: The dependency building and linking strategy to use. Must be one of "StaticLibraries", "DynamicFrameworks" default: StaticLibraries ruby-version: description: The version of ruby that must be used default: 2.6.10 flavor: description: The flavor of the build. Must be one of "Debug", "Release". default: Debug runs: using: composite steps: - name: Setup xcode uses: ./.github/actions/setup-xcode - name: Setup node.js uses: ./.github/actions/setup-node - name: Run yarn install uses: ./.github/actions/yarn-install - name: Setup ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ inputs.ruby-version }} - name: Set Hermes prebuilt version shell: bash run: | node ./scripts/releases/use-hermes-prebuilt.js - name: Run yarn install again, with the correct hermes version uses: ./.github/actions/yarn-install - name: Download ReactNativeDependencies uses: actions/download-artifact@v7 with: name: ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz path: /tmp/third-party - name: Print third-party folder shell: bash run: ls -lR /tmp/third-party - name: Download React Native Prebuilds uses: actions/download-artifact@v7 with: name: ReactCore${{ inputs.flavor }}.xcframework.tar.gz path: /tmp/ReactCore - name: Print ReactCore folder shell: bash run: ls -lR /tmp/ReactCore - name: Install iOS dependencies - Configuration ${{ inputs.flavor }}; shell: bash run: | cd private/helloworld args=() if [[ ${{ inputs.use-frameworks }} == "DynamicFrameworks" ]]; then args+=(--frameworks dynamic) fi export RCT_USE_LOCAL_RN_DEP="/tmp/third-party/ReactNativeDependencies${{ inputs.flavor }}.xcframework.tar.gz" export RCT_TESTONLY_RNCORE_TARBALL_PATH="/tmp/ReactCore/ReactCore${{ inputs.flavor }}.xcframework.tar.gz" yarn bootstrap ios "${args[@]}" | cat - name: Run Helloworld tests shell: bash run: | cd private/helloworld yarn test - name: Build HelloWorld project shell: bash run: | cd private/helloworld args=() if [[ ${{ inputs.flavor }} == "Release" ]]; then args+=(--prod) fi yarn build ios "${args[@]}" | cat yarn bundle ios "${args[@]}" | cat