Fix binary builds by disabling buildcvs.
This commit is contained in:
parent
83fa4e2159
commit
608a1e6a72
|
@ -8,6 +8,8 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: download mosquitto
|
- name: download mosquitto
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -7,7 +7,7 @@ cp *.h /usr/include
|
||||||
cd /usr/src/mosquitto-go-auth
|
cd /usr/src/mosquitto-go-auth
|
||||||
|
|
||||||
#build amd64 Linux
|
#build amd64 Linux
|
||||||
make
|
make without-vcs
|
||||||
cp go-auth.so pw /usr/src/output/linux-amd64
|
cp go-auth.so pw /usr/src/output/linux-amd64
|
||||||
|
|
||||||
# build arm64 Linux
|
# build arm64 Linux
|
||||||
|
@ -15,7 +15,7 @@ make clean
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
export GOARCH=arm64
|
export GOARCH=arm64
|
||||||
export CC=aarch64-linux-gnu-gcc
|
export CC=aarch64-linux-gnu-gcc
|
||||||
make
|
make without-vcs
|
||||||
cp go-auth.so pw /usr/src/output/linux-arm64
|
cp go-auth.so pw /usr/src/output/linux-arm64
|
||||||
|
|
||||||
# build armv7 Linux
|
# build armv7 Linux
|
||||||
|
@ -24,7 +24,7 @@ export CGO_ENABLED=1
|
||||||
export GOARCH=arm
|
export GOARCH=arm
|
||||||
export GOARM=7
|
export GOARM=7
|
||||||
export CC=arm-linux-gnueabi-gcc
|
export CC=arm-linux-gnueabi-gcc
|
||||||
make
|
make without-vcs
|
||||||
cp go-auth.so pw /usr/src/output/linux-armv7
|
cp go-auth.so pw /usr/src/output/linux-armv7
|
||||||
|
|
||||||
# build armv7 Linux
|
# build armv7 Linux
|
||||||
|
@ -33,5 +33,5 @@ export CGO_ENABLED=1
|
||||||
export GOARCH=arm
|
export GOARCH=arm
|
||||||
export GOARM=6
|
export GOARM=6
|
||||||
export CC=arm-linux-gnueabi-gcc
|
export CC=arm-linux-gnueabi-gcc
|
||||||
make
|
make without-vcs
|
||||||
cp go-auth.so pw /usr/src/output/linux-armv6
|
cp go-auth.so pw /usr/src/output/linux-armv6
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -13,6 +13,12 @@ all:
|
||||||
env CGO_LDFLAGS="$(LDFLAGS)" go build -buildmode=c-shared -o go-auth.so
|
env CGO_LDFLAGS="$(LDFLAGS)" go build -buildmode=c-shared -o go-auth.so
|
||||||
go build pw-gen/pw.go
|
go build pw-gen/pw.go
|
||||||
|
|
||||||
|
without-vcs:
|
||||||
|
@echo "Bulding for $(UNAME_S)"
|
||||||
|
env CGO_CFLAGS="$(CFLAGS)" go build -buildvcs=false -buildmode=c-archive go-auth.go
|
||||||
|
env CGO_LDFLAGS="$(LDFLAGS)" go build -buildvcs=false -buildmode=c-shared -o go-auth.so
|
||||||
|
go build -buildvcs=false pw-gen/pw.go
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cd plugin && make
|
cd plugin && make
|
||||||
go test ./backends ./cache ./hashing -v -count=1
|
go test ./backends ./cache ./hashing -v -count=1
|
||||||
|
|
Loading…
Reference in New Issue