-
Notifications
You must be signed in to change notification settings - Fork 46
47 lines (37 loc) · 1.31 KB
/
build_experimental_engine.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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