mirror of
https://github.com/morluto/rea.git
synced 2026-12-04 14:01:00 +00:00
* build(deps): bump actions/checkout from 4.4.0 to 7.0.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.4.0 to 7.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.4.0...3d3c42e5aac5ba805825da76410c181273ba90b1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * test(ci): identify the trusted checkout independently of its release * test(ci): narrow workflow step uses before matching checkout --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
59 lines
2.7 KiB
YAML
59 lines
2.7 KiB
YAML
name: Real Android metadata bridge
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
android-metadata:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
sparse-checkout: |
|
|
bridge/android
|
|
scripts/fixtures/android
|
|
scripts/lib
|
|
src/android
|
|
tests/conformance/android
|
|
tests/fixtures/android
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
package-manager-cache: false
|
|
node-version-file: .nvmrc
|
|
- name: Fetch checksum-pinned engine and public APK fixture
|
|
run: node scripts/fixtures/android/fetch.mjs "$RUNNER_TEMP/rea-android"
|
|
- name: Compile and exercise the real metadata bridge
|
|
shell: bash
|
|
run: |
|
|
export JAVA_HOME="$JAVA_HOME_21_X64"
|
|
android_root="$RUNNER_TEMP/rea-android"
|
|
classes="$android_root/classes"
|
|
# Derive the fixture's file name from the pinned release identity so an
|
|
# engine upgrade cannot leave this workflow pointing at a stale path.
|
|
jar="$android_root/$(node --input-type=module -e 'import { JADX_RELEASE } from "./src/android/JadxRelease.ts"; console.log(`jadx-headless-mcp-${JADX_RELEASE.version}-all.jar`);')"
|
|
mkdir -p "$classes"
|
|
"$JAVA_HOME/bin/javac" -J-Xmx512m -J-XX:ActiveProcessorCount=2 \
|
|
-classpath "$jar" -d "$classes" \
|
|
bridge/android/ReaJadxBridge.java \
|
|
tests/conformance/android/ReaJadxMetadataRegression.java \
|
|
tests/conformance/android/ReaJadxExternalReferencesRegression.java
|
|
"$JAVA_HOME/bin/java" -Xmx512m -XX:ActiveProcessorCount=2 \
|
|
-classpath "$classes:$jar" ReaJadxMetadataRegression \
|
|
"$android_root/ApiDemos-debug.apk" \
|
|
"$GITHUB_WORKSPACE/tests/fixtures/android/static-initializers" \
|
|
"$classes" "$GITHUB_WORKSPACE/tests/fixtures/android/direct-invokes" \
|
|
| tee "$android_root/metadata.log"
|
|
grep -F 'RAW_CLASS_SELECTOR_REGRESSION_PASS nested=true metadata=true references=true' \
|
|
"$android_root/metadata.log"
|
|
"$JAVA_HOME/bin/java" -Xmx512m -XX:ActiveProcessorCount=2 \
|
|
-classpath "$classes:$jar" ReaJadxExternalReferencesRegression \
|
|
"$GITHUB_WORKSPACE/tests/fixtures/android/external-invokes" "$classes" \
|
|
| tee "$android_root/external-references.log"
|
|
grep -F 'EXTERNAL_REFERENCE_REGRESSION_PASS prototypes=2 using_nodes=3 sites=4' \
|
|
"$android_root/external-references.log"
|