Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: add gomobile android build

x0b2833941da879
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: |