From d107f24c427894ccf497d671a0e5071a1eba61ac Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 11 Feb 2023 18:08:31 -0800 Subject: [PATCH 1/2] .github/workflows: simplify build-only go test invocation Signed-off-by: David Anderson --- .github/workflows/test.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2d62a057..6ff8cae62 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -171,11 +171,7 @@ jobs: GOARCH: ${{ matrix.goarch }} CGO_ENABLED: "0" - name: build tests - run: | - toolgo=`pwd`/tool/go - for d in $($toolgo list -f '{{if .TestGoFiles}}{{.Dir}}{{end}}' ./... ); do - (echo $d; cd $d && $toolgo test -c) - done + run: ./tool/go test -exec=true ./... env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} From db6b3f6b43bdff62cb614769ebc0894f79a3280f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 11 Feb 2023 18:31:50 -0800 Subject: [PATCH 2/2] .github/workflows: add armv5 and armv7 cross tests armv5 because that's what we ship to most downstreams right now, armv7 becuase that's what we want to ship more of. Signed-off-by: David Anderson --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ff8cae62..a77aa6209 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -144,6 +144,12 @@ jobs: goarch: "386" # thanks yaml - goos: linux goarch: loong64 + - goos: linux + goarch: arm + goarm: "5" + - goos: linux + goarch: arm + goarm: "7" # macOS - goos: darwin goarch: amd64 @@ -169,6 +175,7 @@ jobs: env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} + GOARM: ${{ matrix.goarm }} CGO_ENABLED: "0" - name: build tests run: ./tool/go test -exec=true ./...