.github/workflows: add cross-android

Fixes 4482

Signed-off-by: James Tucker <[email protected]>
This commit is contained in:
James Tucker committed 2022-04-21 10:26:40 -07:00
1 parent 26fe00e7bd
commit 20cd690970
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -31,11 +31,11 @@ jobs:
GOARCH: amd64
run: go build ./cmd/...
- name: Android build tests
- name: Android build tests (does not run tests)
env:
GOOS: android
GOARCH: amd64
run: for d in $(go list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do (echo $d; cd $d && go test -c ); done
run: for d in $(go list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do (echo $d; cd $d && go test -run '^$' -c ); done
- uses: k0kubun/[email protected]
with:
+3
View File
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !android
// +build !android
package monitor
import (