From 3d1de1cd6ecf7d5816b388294ac4749011951c9f Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 17 Mar 2021 16:53:09 -0700 Subject: [PATCH 1/4] drone.yml new gomobile image --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 5022550..9cc735f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -57,6 +57,7 @@ steps: branch: trunk event: [ push, pull_request ] commands: + - gomobile init - make android - name: notify-email image: drillster/drone-email @@ -80,5 +81,6 @@ steps: gogs_url: https://git.openprivacy.ca volumes: + # gopath where bin and pkg lives to persist across steps - name: deps temp: {} From dac7d145d221562ceb75e77b453373e996874e07 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 17 Mar 2021 16:56:27 -0700 Subject: [PATCH 2/4] drone.yml wrong images --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9cc735f..e4c99bb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,8 +36,9 @@ steps: - go list ./... | xargs go vet - go list ./... | xargs golint #Todo: fix all the lint errors and add `-set_exit_status` above to enforce linting + - name: build-linux - image: openpriv/android-go-mobile:2021 + image: golang volumes: - name: deps path: /go @@ -47,6 +48,7 @@ steps: event: [ push, pull_request ] commands: - make linux + - name: build-android image: openpriv/android-go-mobile:2021 volumes: @@ -59,6 +61,7 @@ steps: commands: - gomobile init - make android + - name: notify-email image: drillster/drone-email host: build.openprivacy.ca From b678b3b77d30ffaa2e8278188d0e3cce3926ace6 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 17 Mar 2021 17:36:16 -0700 Subject: [PATCH 3/4] drone.yml gomobile try gets --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index e4c99bb..1f4fd01 100644 --- a/.drone.yml +++ b/.drone.yml @@ -59,6 +59,8 @@ steps: branch: trunk event: [ push, pull_request ] commands: + - go get golang.org/x/mobile/cmd/gomobile + - go get golang.org/x/mobile/cmd/gobind - gomobile init - make android From 3b2c8a3d7bac0a8b4b60d39ad14751e473cdfeed Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 19 Mar 2021 14:50:45 -0700 Subject: [PATCH 4/4] drone.yml: more gomobile commands to make it work --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 1f4fd01..d480cef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,6 +61,9 @@ steps: commands: - go get golang.org/x/mobile/cmd/gomobile - go get golang.org/x/mobile/cmd/gobind + - go get -u golang.org/x/mobile + - go get -u golang.org/x/mobile/bind + - gomobile clean - gomobile init - make android