Skip to content

add getFragments

add getFragments #21

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
merge_group:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
path: StethoX
- name: Write key
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/master' ) || github.ref_type == 'tag' }}
run: |
if [ ! -z "${{ secrets.KEY_STORE }}" ]; then
echo androidStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> gradle.properties
echo androidKeyAlias='${{ secrets.ALIAS }}' >> gradle.properties
echo androidKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties
echo androidStoreFile='key.jks' >> gradle.properties
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
fi
- name: Checkout rhino
uses: actions/checkout@v4
with:
repository: 5ec1cff/rhino
path: rhino
- name: Checkout stetho
uses: actions/checkout@v4
with:
repository: 5ec1cff/stetho
path: stetho
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build rhino
working-directory: rhino
run: |
echo 'org.gradle.caching=true' >> ~/.gradle/gradle.properties
echo 'org.gradle.parallel=true' >> ~/.gradle/gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC' >> ~/.gradle/gradle.properties
echo 'android.native.buildOutput=verbose' >> ~/.gradle/gradle.properties
./gradlew publishToMavenLocal
- name: Build stetho
working-directory: stetho
run: |
echo 'org.gradle.caching=true' >> ~/.gradle/gradle.properties
echo 'org.gradle.parallel=true' >> ~/.gradle/gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC' >> ~/.gradle/gradle.properties
echo 'android.native.buildOutput=verbose' >> ~/.gradle/gradle.properties
./gradlew publishToMavenLocal
- name: Build with Gradle
working-directory: StethoX
run: |
./gradlew app:assemble
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: "StethoX-release-ci.apk"
path: "./StethoX/app/build/outputs/apk/release/app-release.apk"
- name: Upload debug
uses: actions/upload-artifact@v4
with:
name: "StethoX-debug-ci.apk"
path: "./StethoX/app/build/outputs/apk/debug/app-debug.apk"