Fix package cluster not compatible with 32bits systems

This commit is contained in:
Nicolas JUHEL
2021-04-12 19:33:12 +02:00
parent e059fd608d
commit fc0630aa36
16 changed files with 60 additions and 4 deletions

View File

@@ -85,17 +85,39 @@ jobs:
- name: Test Build Linux/amd64 with suffix - name: Test Build Linux/amd64 with suffix
continue-on-error: false 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 - name: Test Build Linux/386 with suffix
continue-on-error: false 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 - name: Test Build Windows/amd64 with CGO
continue-on-error: false 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 - name: Test Build Windows/386 with CGO
continue-on-error: false 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})

5
build.386 Normal file
View File

@@ -0,0 +1,5 @@
vendor
test
nutsdb
cluster

3
build.amd64 Normal file
View File

@@ -0,0 +1,3 @@
vendor
test/test

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License

View File

@@ -1,3 +1,5 @@
//+build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le riscv64 s390x sparc64 wasm
/*********************************************************************************************************************** /***********************************************************************************************************************
* *
* MIT License * MIT License