Skip to content

Commit

Permalink
use setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Mar 31, 2024
1 parent 5fbfbbb commit b1dba67
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,22 @@ jobs:
- name: build tflite
working-directory: rdk
run: ANDROID_NDK=$NDK_ROOT KEEP_TFLITE_SRC=1 etc/android/build-tflite.sh
# todo: try setup-go instead of go in base image, for caching + simpler version upgrades
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: build AAR
working-directory: rdk
run: CGO_CFLAGS="-I $HOME/tensorflow/tensorflow-2.12.0" PLATFORM_NDK_ROOT=$NDK_ROOT NDK_ROOT=$NDK_ROOT make droid-rdk.aar
run: |
which go
CGO_CFLAGS="-I $HOME/tensorflow/tensorflow-2.12.0" PLATFORM_NDK_ROOT=$NDK_ROOT NDK_ROOT=$NDK_ROOT make droid-rdk.aar
# todo: pass down APK + RDK version information
- name: build APK
working-directory: rdk-apk
shell: bash
run: |
export RDK_PATH=$(realpath ../rdk)
source $SDKMAN_DIR/bin/sdkman-init.sh
# todo(review): is it safe to use gradle in path instead of gradlew? or way to make gradlew use system gradle?
gradle --no-daemon assembleDebug
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit b1dba67

Please sign in to comment.