diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 452b8c6..34fe5f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,6 +37,9 @@ jobs: - name: End 2 end run: make e2evv + - name: Build test mobile + run: make build-test-mobile + - uses: actions/upload-artifact@v3 with: name: e2e packet flow diff --git a/Makefile b/Makefile index 795f42f..a02a6ec 100644 --- a/Makefile +++ b/Makefile @@ -169,6 +169,12 @@ test-cov-html: go test -coverprofile=coverage.out go tool cover -html=coverage.out +build-test-mobile: + GOARCH=amd64 GOOS=ios go build $(shell go list ./... | grep -v '/cmd/\|/examples/') + GOARCH=arm64 GOOS=ios go build $(shell go list ./... | grep -v '/cmd/\|/examples/') + GOARCH=amd64 GOOS=android go build $(shell go list ./... | grep -v '/cmd/\|/examples/') + GOARCH=arm64 GOOS=android go build $(shell go list ./... | grep -v '/cmd/\|/examples/') + bench: go test -bench=. @@ -214,5 +220,5 @@ smoke-docker-race: CGO_ENABLED = 1 smoke-docker-race: smoke-docker .FORCE: -.PHONY: e2e e2ev e2evv e2evvv e2evvvv test test-cov-html bench bench-cpu bench-cpu-long bin proto release service smoke-docker smoke-docker-race +.PHONY: bench bench-cpu bench-cpu-long bin build-test-mobile e2e e2ev e2evv e2evvv e2evvvv proto release service smoke-docker smoke-docker-race test test-cov-html .DEFAULT_GOAL := bin