From 50eb9a4bc28b2f52af6d828b4e179a00f1e17f15 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Sun, 26 May 2024 12:20:41 -0700 Subject: [PATCH] try to fix crosscompile ci test --- .../workflows/ubuntu-golang-cross-compile-test.yml | 13 ++++++------- misc/test-golang-cross.sh | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ubuntu-golang-cross-compile-test.yml b/.github/workflows/ubuntu-golang-cross-compile-test.yml index 3325b15..c6a6b71 100644 --- a/.github/workflows/ubuntu-golang-cross-compile-test.yml +++ b/.github/workflows/ubuntu-golang-cross-compile-test.yml @@ -22,10 +22,9 @@ jobs: go-version: ${{ matrix.go-version }} - name: Display Go version run: go version -# -# - name: Install Golang deps -# run: sudo ./misc/install-debian-go-deps-by-arch.sh ${{ matrix.ARCH }} -# -# - name: Build Golang cgo -# run: ./misc/test-golang-cross.sh ${{ matrix.ARCH }} -# \ No newline at end of file + + - name: Install Golang deps + run: sudo ./misc/install-debian-go-deps-by-arch.sh ${{ matrix.ARCH }} + + - name: Build Golang cgo + run: ./misc/test-golang-cross.sh ${{ matrix.ARCH }} diff --git a/misc/test-golang-cross.sh b/misc/test-golang-cross.sh index 4d65c8a..54f58e4 100755 --- a/misc/test-golang-cross.sh +++ b/misc/test-golang-cross.sh @@ -175,7 +175,7 @@ then CC="clang $TARGET $EXTRA_FLAGS $EXTRA_INCLUDE" \ - go test -v ./...; + go get -v ./... && go build -v ./... echo -e "$CHECKMARK";