commit 0510ca39310ffd1482eb363672acb29ac16ba9e8 parent 2bc50e380ac947dc01eab206349d4a781003df37 Author: Erik Agsjö <erik.agsjo@gmail.com> Date: Sun, 12 Dec 2021 23:46:15 +0100 More stable script Diffstat:
| M | .github/workflows/android.yml | | | 4 | ++-- |
| A | testrig/android/run.sh | | | 13 | +++++++++++++ |
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml @@ -27,7 +27,6 @@ jobs: with: java-version: '11' distribution: 'temurin' - #cache: 'gradle' - name: AVD cache uses: actions/cache@v2 @@ -56,4 +55,5 @@ jobs: force-avd-creation: false emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true - script: (go run ../rig.go -serve &) && ./gradlew connectedCheck + script: ./run.sh + diff --git a/testrig/android/run.sh b/testrig/android/run.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +go build ../rig.go + +./rig -serve & +PID=$! + +./gradlew connectedCheck +CODE=$? + +kill $PID +wait $PID +exit $CODE