diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4811f49..0934761 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -85,17 +85,39 @@ jobs: - name: Test Build Linux/amd64 with suffix continue-on-error: false - run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -v -installsuffix cgo -ldflags "-w -s -extldflags '-static' " ./... + run: | + CGO_ENABLED=0 + GOOS=linux + GOARCH=amd64 + IGNORE_BUILD=$(sed '/^[[:space:]]*$/d' "build.$(go env | grep GOARCH | cut -d'=' -f2 | tr -d '"')" | tr '\n' '|') + go build -a -v -installsuffix cgo -ldflags "-w -s -extldflags '-static' " $(go list ./... | grep -vPi ${IGNORE_BUILD::-1}) - name: Test Build Linux/386 with suffix continue-on-error: false - run: CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -a -v -installsuffix cgo -ldflags "-w -s -extldflags '-static' " ./... + run: | + CGO_ENABLED=0 + GOOS=linux + GOARCH=386 + IGNORE_BUILD=$(sed '/^[[:space:]]*$/d' "build.$(go env | grep GOARCH | cut -d'=' -f2 | tr -d '"')" | tr '\n' '|') + go build -a -v -installsuffix cgo -ldflags "-w -s -extldflags '-static' " $(go list ./... | grep -vPi ${IGNORE_BUILD::-1}) - name: Test Build Windows/amd64 with CGO continue-on-error: false - run: CC=/usr/bin/x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -a -v -ldflags "-w -s -extldflags '-static' " ./... + run: | + CC=/usr/bin/x86_64-w64-mingw32-gcc + CGO_ENABLED=1 + GOOS=windows + GOARCH=amd64 + IGNORE_BUILD=$(sed '/^[[:space:]]*$/d' "build.$(go env | grep GOARCH | cut -d'=' -f2 | tr -d '"')" | tr '\n' '|') + go build -a -v -ldflags "-w -s -extldflags '-static' " $(go list ./... | grep -vPi ${IGNORE_BUILD::-1}) - name: Test Build Windows/386 with CGO continue-on-error: false - run: CC=/usr/bin/i686-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=386 go build -a -v -ldflags "-w -s -extldflags '-static' " ./... + run: | + CC=/usr/bin/i686-w64-mingw32-gcc + CGO_ENABLED=1 + GOOS=windows + GOARCH=386 + IGNORE_BUILD=$(sed '/^[[:space:]]*$/d' "build.$(go env | grep GOARCH | cut -d'=' -f2 | tr -d '"')" | tr '\n' '|') + go build -a -v -ldflags "-w -s -extldflags '-static' " $(go list ./... | grep -vPi ${IGNORE_BUILD::-1}) diff --git a/build.386 b/build.386 new file mode 100644 index 0000000..0201aca --- /dev/null +++ b/build.386 @@ -0,0 +1,5 @@ +vendor +test +nutsdb +cluster + diff --git a/build.amd64 b/build.amd64 new file mode 100644 index 0000000..0e9ccfc --- /dev/null +++ b/build.amd64 @@ -0,0 +1,3 @@ +vendor +test/test + diff --git a/cluster/async.go b/cluster/async.go index 324f5ff..83442aa 100644 --- a/cluster/async.go +++ b/cluster/async.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/cluster.go b/cluster/cluster.go index 9f29fcf..0051553 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/config.go b/cluster/config.go index 6ac0c79..dd1fc24 100644 --- a/cluster/config.go +++ b/cluster/config.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/configCluster.go b/cluster/configCluster.go index 690edd8..3086947 100644 --- a/cluster/configCluster.go +++ b/cluster/configCluster.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/configEngine.go b/cluster/configEngine.go index 8d6c925..f440631 100644 --- a/cluster/configEngine.go +++ b/cluster/configEngine.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/configExpert.go b/cluster/configExpert.go index 5929c6b..8ec8067 100644 --- a/cluster/configExpert.go +++ b/cluster/configExpert.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/configGossip.go b/cluster/configGossip.go index 60f1614..6388096 100644 --- a/cluster/configGossip.go +++ b/cluster/configGossip.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/configNode.go b/cluster/configNode.go index ca43cb7..ce702df 100644 --- a/cluster/configNode.go +++ b/cluster/configNode.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/errors.go b/cluster/errors.go index 6617859..0560fc7 100644 --- a/cluster/errors.go +++ b/cluster/errors.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/interface.go b/cluster/interface.go index def33e0..13a19d3 100644 --- a/cluster/interface.go +++ b/cluster/interface.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/local.go b/cluster/local.go index 87fb12b..13235fb 100644 --- a/cluster/local.go +++ b/cluster/local.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/logger.go b/cluster/logger.go index b71b941..832fb5c 100644 --- a/cluster/logger.go +++ b/cluster/logger.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License diff --git a/cluster/sync.go b/cluster/sync.go index c9b7d07..a22f471 100644 --- a/cluster/sync.go +++ b/cluster/sync.go @@ -1,3 +1,5 @@ +//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm + /*********************************************************************************************************************** * * MIT License