Feat: Add task to build experimental engine in android #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |