From 2833941da879cae863dc85899c178d9a85bf1451 Mon Sep 17 00:00:00 2001 From: x0b Date: Wed, 28 Apr 2021 20:43:46 +0200 Subject: [PATCH] build: add gomobile android build --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 398b38a8b..af0bf7b00 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -267,6 +267,15 @@ jobs: run: | make + - name: install gomobile + run: | + go get golang.org/x/mobile/cmd/gobind + go get golang.org/x/mobile/cmd/gomobile + env PATH=$PATH:~/go/bin gomobile init + + - name: arm-v7a gomobile build + run: env PATH=$PATH:~/go/bin gomobile bind -v -target=android/arm -javapkg=org.rclone -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} github.com/rclone/rclone/librclone/gomobile + - name: arm-v7a Set environment variables shell: bash run: |