Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbfb authored May 24, 2024
1 parent 97743d3 commit f5817ba
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,34 +489,36 @@ jobs:
cmake -S hermes -B build -G 'Visual Studio 16 2019'
cmake --build build --target check-hermes -- -m /p:UseMultiToolTask=true -m /p:EnforceProcessCountAcrossBuilds=true
test-e2e:
runs-on: ubuntu-20.04
container:
image: reactnativecommunity/react-native-android:latest
env:
TERM: "dumb"
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
# By default we only build ARM64 to save time/resources. For release/nightlies/prealpha, we override this value to build all archs.
ORG_GRADLE_PROJECT_reactNativeArchitectures: "arm64-v8a"
REACT_NATIVE_OVERRIDE_HERMES_DIR: /__w/hermes/hermes/hermes/
runs-on: ubuntu-latest
env:
TERM: "dumb"
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
# By default we only build ARM64 to save time/resources. For release/nightlies/prealpha, we override this value to build all archs.
ORG_GRADLE_PROJECT_reactNativeArchitectures: "arm64-v8a"
HERMES_WS_DIR: /home/runner/work/hermes
REACT_NATIVE_OVERRIDE_HERMES_DIR: /home/runner/work/hermes
steps:
- uses: actions/[email protected]
- name: Setup dependencies
run: |-
(yes | sdkmanager "cmake;3.22.1" --verbose) || true
sudo apt update && sudo apt install -y openjdk-11-jdk
- uses: actions/[email protected]
with:
path: hermes
- name: Prepare RNTester
run: |-
mkdir -p "$HERMES_WS_DIR"
cd "$HERMES_WS_DIR"
git clone --depth=1 https://github.com/facebook/react-native
cd react-native
yarn install
echo "console.log('Using Hermes: ' + (global.HermesInternal != null));" >> packages/rn-tester/js/RNTesterApp.android.js
- name: Run android tests
working-directory: react-native
run: |
./gradlew -PreactNativeArchitectures=x86 :packages:rn-tester:android:app:installHermesRelease
uses: ReactiveCircus/[email protected]
with:
api-level: 29
script: |
cd "$HERMES_WS_DIR"/react-native
&& ./gradlew -PreactNativeArchitectures=x86 :packages:rn-tester:android:app:installHermesRelease
&& adb shell am start com.facebook.react.uiapp/.RNTesterActivity
&& timeout 30s adb logcat -e "Using Hermes: true" -m 1
test-e2e-intl:
Expand Down

0 comments on commit f5817ba

Please sign in to comment.