fix: attempt to make android builds faster (#909)

After https://github.com/ooni/probe-cli/pull/908, the Android
build has become super slow, because we build serially.

Attempt to make it faster by building in parallel.

Still part of https://github.com/ooni/probe/issues/2119, because
I don't feel happy with a super slow build.
This commit is contained in:
Simone Basso 2022-08-30 12:09:01 +02:00 committed by GitHub
commit d1b172f3ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 164 additions and 14 deletions

View file

@ -50,16 +50,30 @@ show-config:
@echo "OONI_PSIPHON_TAGS=$(OONI_PSIPHON_TAGS)"
#help:
#help: The `make CLI/android` command builds miniooni and ooniprobe for
#help: all the supported Android architectures.
.PHONY: CLI/android
CLI/android: search/for/go search/for/android/sdk maybe/copypsiphon
#help: The `make CLI/android-386` command builds miniooni and ooniprobe for android/386.
.PHONY: CLI/android-386
CLI/android-386: search/for/go search/for/android/sdk maybe/copypsiphon
./CLI/go-build-android 386 ./internal/cmd/miniooni
./CLI/go-build-android 386 ./cmd/ooniprobe
#help:
#help: The `make CLI/android-amd64` command builds miniooni and ooniprobe for android/amd64.
.PHONY: CLI/android-amd64
CLI/android-amd64: search/for/go search/for/android/sdk maybe/copypsiphon
./CLI/go-build-android amd64 ./internal/cmd/miniooni
./CLI/go-build-android amd64 ./cmd/ooniprobe
#help:
#help: The `make CLI/android-arm` command builds miniooni and ooniprobe for android/arm.
.PHONY: CLI/android-arm
CLI/android-arm: search/for/go search/for/android/sdk maybe/copypsiphon
./CLI/go-build-android arm ./internal/cmd/miniooni
./CLI/go-build-android arm ./cmd/ooniprobe
#help:
#help: The `make CLI/android-arm64` command builds miniooni and ooniprobe for android/arm64.
.PHONY: CLI/android-arm64
CLI/android-arm64: search/for/go search/for/android/sdk maybe/copypsiphon
./CLI/go-build-android arm64 ./internal/cmd/miniooni
./CLI/go-build-android arm64 ./cmd/ooniprobe