From 01321e64c8fac3c572f753ed0c939b54a9dbf4c4 Mon Sep 17 00:00:00 2001 From: hunterlong Date: Mon, 20 Jul 2020 15:24:44 -0700 Subject: [PATCH] actions dev builds (arm6/7) --- .github/workflows/master.yml | 3 ++- Makefile | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b70e31c3..f781d626 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -398,7 +398,8 @@ jobs: files: | builds/statping-linux-386.tar.gz builds/statping-linux-amd64.tar.gz - builds/statping-linux-arm.tar.gz + builds/statping-linux-arm6.tar.gz + builds/statping-linux-arm7.tar.gz builds/statping-linux-arm64.tar.gz builds/statping-darwin-amd64.tar.gz builds/statping-darwin-386.tar.gz diff --git a/Makefile b/Makefile index d3af9481..e3347d60 100644 --- a/Makefile +++ b/Makefile @@ -173,16 +173,18 @@ build-linux: go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION}" -o releases/statping-linux-386/statping --tags "netgo linux" ./cmd build-linux-arm: + CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc-6 CXX=arm-linux-gnueabihf-g++-6 GO111MODULE="on" GOOS=linux GOARCH=arm GOARM=6 \ + go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION}" -o releases/statping-linux-arm6/statping --tags "netgo linux" ./cmd CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc-6 CXX=arm-linux-gnueabihf-g++-6 GO111MODULE="on" GOOS=linux GOARCH=arm GOARM=7 \ - go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION}" -o releases/statping-linux-arm/statping ./cmd + go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION}" -o releases/statping-linux-arm7/statping --tags "netgo linux" ./cmd CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc-6 CXX=aarch64-linux-gnu-g++-6 GO111MODULE="on" GOOS=linux GOARCH=arm64 \ - go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION}" -o releases/statping-linux-arm64/statping ./cmd + go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION}" -o releases/statping-linux-arm64/statping --tags "netgo linux" ./cmd build-folders: mkdir build || true for os in windows darwin linux;\ do \ - for arch in 386 amd64 arm arm64;\ + for arch in 386 amd64 arm6 arm7 arm64;\ do \ mkdir -p releases/statping-$$os-$$arch/; \ done \ @@ -192,7 +194,7 @@ compress-folders: mkdir build || true for os in darwin linux;\ do \ - for arch in 386 amd64 arm arm64;\ + for arch in 386 amd64 arm6 arm7 arm64;\ do \ chmod +x releases/statping-$$os-$$arch/statping || true; \ tar -czf releases/statping-$$os-$$arch.tar.gz -C releases/statping-$$os-$$arch statping || true; \