diff --git a/.github/workflows/binary.yml b/.github/workflows/binary.yml new file mode 100644 index 0000000..8a04145 --- /dev/null +++ b/.github/workflows/binary.yml @@ -0,0 +1,24 @@ +name: Release Binary + +on: + push: + branches: + - master + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + container: techknowlogick/xgo:go-1.19.x + steps: + + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + # - name: Release binary + # run: | + # ls -al + # make release diff --git a/Makefile b/Makefile index 5dc279e..a30ca80 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ GO ?= go SHASUM ?= shasum -a 256 HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" ) XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest -XGO_VERSION := go-1.18.x -GXZ_PAGAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.10 +XGO_VERSION := go-1.19.x +GXZ_PAGAGE ?= github.com/ulikunitz/xz/cmd/gxz@v0.5.11 LINUX_ARCHS ?= linux/amd64,linux/arm64 -DARWIN_ARCHS ?= darwin-12/amd64,darwin-12/arm64 -WINDOWS_ARCHS ?= windows/amd64 +DARWIN_ARCHS ?= darwin-10.12/amd64,darwin-10.12/arm64 +WINDOWS_ARCHS ?= windows/* ifneq ($(shell uname), Darwin) EXTLDFLAGS = -extldflags "-static" $(null) @@ -119,7 +119,7 @@ deps-backend: $(GO) install $(XGO_PACKAGE) .PHONY: release -release: release-linux release-copy release-compress release-check +release: release-linux release-darwin release-windows release-copy release-compress release-check $(DIST_DIRS): mkdir -p $(DIST_DIRS)