From 4a05db1fe718c288c115151948fc733e431652c0 Mon Sep 17 00:00:00 2001 From: "Bo-Yi.Wu" Date: Wed, 7 Dec 2022 22:01:05 +0800 Subject: [PATCH] chore(CI): using container Signed-off-by: Bo-Yi.Wu --- .github/workflows/go.yml | 23 +++-------------------- Makefile | 2 +- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cc0a849..6f304ff 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -37,28 +37,11 @@ jobs: env: GO111MODULE: on GOPROXY: https://proxy.golang.org + container: + image: techknowlogick/xgo:go-1.18.x steps: - - name: Set up Go ${{ matrix.go }} - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go }} - - - name: Checkout Code - uses: actions/checkout@v3 - with: - ref: ${{ github.ref }} - - - uses: actions/cache@v3 - with: - path: | - ${{ matrix.go-build }} - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - name: initial docker - uses: docker-practice/actions-setup-docker@master - name: build all binaries run: | set -x + export PATH=$PATH:$GOPATH/bin make release diff --git a/Makefile b/Makefile index 77c20fd..119464b 100644 --- a/Makefile +++ b/Makefile @@ -133,7 +133,7 @@ deps-backend: $(GO) install $(XGO_PACKAGE) .PHONY: release -release: release-linux release-darwin release-copy release-compress release-check +release: release-windows release-linux release-darwin release-copy release-compress release-check $(DIST_DIRS): mkdir -p $(DIST_DIRS)