Skip to content

Commit cae58ee

Browse files
committed
fix(ci)_: gomobile init android build
Otherwise CI builds were failing with : ``` github.com/status-im/status-go/mobile/requests github.com/status-im/status-go/server/pairing/preflight github.com/status-im/status-go/mobile gobind/gobind gobind/gobind /nix/store/9cimpd18hk5dly63v76nwjdfc6h284bm-gomobile-0-unstable-2024-12-13/bin/gomobile: open build/bin/statusgo.aar: no such file or directory make: *** [Makefile:186: statusgo-android] Error 1 ``` failing CI job : https://ci.status.im/blue/organizations/jenkins/status-go%2Fprs%2Fandroid/detail/PR-6612/13/pipeline/ I tried to build manually on `linux-02` and got the same failure, also this build directory was absent. ``` bash-5.2$ ls -la build/ 2>/dev/null || echo "build directory doesn't exist" build directory doesn't exist ``` also fixes : #6579
1 parent 316ed44 commit cae58ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ status-go-deps:
183183
statusgo-android: generate
184184
statusgo-android: ##@cross-compile Build status-go for Android
185185
@echo "Building status-go for Android..."
186-
export GO111MODULE=off; \
186+
mkdir -p build/bin \
187+
export GO111MODULE=on GOFLAGS="-mod=mod"; \
187188
gomobile init; \
188189
gomobile bind -v \
189190
-target=android -ldflags="-s -w" \

0 commit comments

Comments
 (0)