Skip to content

Commit 6a9481d

Browse files
committed
ci: nuke gomobile
We no longer build with `gomobile` in CI because status-desktop uses `status-go` via `make statusgo-shared-library` The same will be used in the new mobile app as well.
1 parent e8dbb93 commit 6a9481d

File tree

10 files changed

+5
-479
lines changed

10 files changed

+5
-479
lines changed

Makefile

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.PHONY: statusgo all test clean help
2-
.PHONY: statusgo-android statusgo-ios
32
.PHONY: build-libwaku test-libwaku clean-libwaku rebuild-libwaku
43

54
# Clear any GOROOT set outside of the Nix shell
@@ -170,9 +169,6 @@ push-notification-server: build/bin/push-notification-server
170169
cmd: ##@build Build all public apps in ./cmd
171170
cmd: status-backend push-notification-server
172171

173-
statusgo-cross: statusgo-android statusgo-ios
174-
@echo "Full cross compilation done."
175-
@ls -ld build/bin/statusgo-*
176172

177173
status-go-deps:
178174
go clean -cache || true
@@ -181,35 +177,7 @@ status-go-deps:
181177
go install github.com/kevinburke/go-bindata/v4/...@v4.0.2
182178
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.1
183179

184-
statusgo-android: generate
185-
statusgo-android: ##@cross-compile Build status-go for Android
186-
@echo "Building status-go for Android..."
187-
mkdir -p build/bin \
188-
export GO111MODULE=on; \
189-
export GOFLAGS="-mod=mod"; \
190-
gomobile init; \
191-
gomobile bind -v \
192-
-target=android -ldflags="-s -w -checklinkname=0" \
193-
-tags '$(BUILD_TAGS) disable_torrent' \
194-
$(BUILD_FLAGS_MOBILE) \
195-
--androidapi="23" \
196-
-o build/bin/statusgo.aar \
197-
github.com/status-im/status-go/mobile
198-
@echo "Android cross compilation done in build/bin/statusgo.aar"
199-
200-
statusgo-ios: generate
201-
statusgo-ios: ##@cross-compile Build status-go for iOS
202-
@echo "Building status-go for iOS..."
203-
export GO111MODULE=on; \
204-
export GOFLAGS="-mod=mod"; \
205-
gomobile init; \
206-
gomobile bind -v \
207-
-target=ios -ldflags="-s -w" \
208-
-tags 'nowatchdog $(BUILD_TAGS) disable_torrent' \
209-
$(BUILD_FLAGS_MOBILE) \
210-
-o build/bin/Statusgo.xcframework \
211-
github.com/status-im/status-go/mobile
212-
@echo "iOS framework cross compilation done in build/bin/Statusgo.xcframework"
180+
213181

214182
statusgo-library: generate
215183
statusgo-library: $(LIBWAKU) ##@cross-compile Build status-go as static library for current platform
@@ -290,9 +258,6 @@ analyze-token-stores:
290258

291259
prepare-release: clean-release
292260
mkdir -p $(RELEASE_DIR)
293-
mv build/bin/statusgo.aar $(RELEASE_DIR)/status-go-android.aar
294-
zip -r build/bin/Statusgo.xcframework.zip build/bin/Statusgo.xcframework
295-
mv build/bin/Statusgo.xcframework.zip $(RELEASE_DIR)/status-go-ios.zip
296261
zip -r $(RELEASE_DIR)/status-go-desktop.zip . -x *.git*
297262
${MAKE} clean
298263

_assets/ci/Jenkinsfile.android

Lines changed: 0 additions & 94 deletions
This file was deleted.

_assets/ci/Jenkinsfile.ios

Lines changed: 0 additions & 98 deletions
This file was deleted.

_assets/ci/Jenkinsfile.nix

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ pipeline {
3131
}
3232
}
3333
}
34-
35-
stage('Build Android library') {
36-
when { expression { env.NODE_LABELS?.contains('linux') } }
37-
steps {
38-
script {
39-
nix.flake("status-go-mobile-android")
40-
}
41-
}
42-
}
4334
}
4435

4536
post {

_docs/how-to-build.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Once that is completed, you can start it straight away by running
5252
This will provide full API at http://localhost:12345. \
5353
Checkout [`status-backend docs`](../cmd/status-backend/README.md) for more details.
5454

55-
### 5. Build a library for Android and iOS
55+
### 5. Build a library for current platform
5656

5757
```shell
58-
make install-gomobile
59-
make statusgo-cross # statusgo-android or statusgo-ios to build for specific platform
58+
make statusgo-library # Build static library
59+
make statusgo-shared-library # Build shared library
6060
```
6161

6262
## Build status-go with nix

nix/overlay.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,4 @@ in rec {
6060
go-modvendor = callPackage ./pkgs/go-modvendor { };
6161
codecov-cli = callPackage ./pkgs/codecov-cli { };
6262
go-generate-fast = callPackage ./pkgs/go-generate-fast { };
63-
# brough in gomobile derivation from https://github.com/NixOS/nixpkgs/commit/f5abef98e8b8c9f9e6da4bdab63f8be1e57ea8c0
64-
# enabled CGO_ENABLED for status-mobile
65-
# swapped --replace plag with --replace-queit in substituteInPlace block because its deprecated in newer nix versions
66-
# swapped buildGoModule with buildGo122Module to ensure derivation is built with go 1.22
67-
gomobile = callPackage ./pkgs/gomobile {};
6863
}

nix/pkgs/gomobile/default.nix

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)