diff --git a/.github/workflows/robot.yml b/.github/workflows/robot.yml index b405ea08a23f2a2ce98c8105290d69c205a67ced..0dac117724b3adc6647bc2154fd2ec79481f8bfb 100644 --- a/.github/workflows/robot.yml +++ b/.github/workflows/robot.yml @@ -83,7 +83,7 @@ jobs: cd $GITHUB_WORKSPACE/matrixone test_scope=$(go list ./... | grep -v 'driver\|engine/aoe\|engine/memEngine\|pkg/catalog') echo "ut start" - CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo -ldecnumber" go test -v -tags matrixone_test -p 1 -covermode=count -coverprofile=${{ env.raw_ut_coverage }} -coverpkg=./pkg/... ${test_scope} | tee ${{ env.ut_report }} + CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo" go test -v -tags matrixone_test -p 1 -covermode=count -coverprofile=${{ env.raw_ut_coverage }} -coverpkg=./pkg/... ${test_scope} | tee ${{ env.ut_report }} echo "ut finished" cat ${{ env.raw_ut_coverage }} | grep -v ${{ env.ut_excluded_pkg }} > ${{ env.ut_coverage }} echo "ut_coverage finished" @@ -112,7 +112,7 @@ jobs: run: | cd $GITHUB_WORKSPACE/matrixone if [ -d "./store" ]; then rm -rf ./store; fi - CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo -ldecnumber" go test -c -tags server_test -covermode=count -coverpkg=./pkg/... ./cmd/db-server -o server_test + CGO_CFLAGS="-I${GITHUB_WORKSPACE}/matrixone/cgo" CGO_LDFLAGS="-L${GITHUB_WORKSPACE}/matrixone/cgo -lmo" go test -c -tags server_test -covermode=count -coverpkg=./pkg/... ./cmd/db-server -o server_test ./server_test -test.coverprofile=${{ env.raw_bvt_coverage }} &>log & - name: Start BVT Test diff --git a/pkg/common/bitmap/cbitmap.go b/pkg/common/bitmap/cbitmap.go index 63adcabc202c719be952061beeb4e180ea33329e..13e86c7c6ff955ae2aa7a71c86a05affb23e7141 100644 --- a/pkg/common/bitmap/cbitmap.go +++ b/pkg/common/bitmap/cbitmap.go @@ -16,6 +16,10 @@ package bitmap /* #include "mo.h" + +#cgo CFLAGS: -I../../../cgo +#cgo LDFLAGS: -L../../../cgo -lmo + */ import "C" import "unsafe"