Skip to content

Feat: Add task to build experimental engine in android #11

Feat: Add task to build experimental engine in android

Feat: Add task to build experimental engine in android #11

name: Build Experimental Engine
on:
push:
branches:
- master
pull_request:
schedule:
- cron: "0 2 * * */2"
jobs:
build_experimental_engine:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Get GOVERSION content
id: goversion
run: echo "version=$(curl https://raw.githubusercontent.com/ooni/probe-cli/master/GOVERSION && cat GOVERSION)" >> "$GITHUB_OUTPUT"
shell: bash
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: "${{ steps.goversion.outputs.version }}"
cache-key-suffix: "-build-experimental-engine-${{ steps.goversion.outputs.version }}"
- name: Build Experimental Archive from `ooni/probe-cli`
run: ./gradlew buildExperimentalArchive
- name: Build Experimental App
run: ./gradlew assembleExperimentalFullDebug
- name: Archive Experimental APK
uses: actions/upload-artifact@v3
with:
name: app-experimental-full-debug
path: app/build/outputs/apk/experimentalFull/debug/app-experimental-full-debug.apk