chore(CI): using container

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu 2022-12-07 22:01:05 +08:00
parent f1be0b3f99
commit 4a05db1fe7
2 changed files with 4 additions and 21 deletions

View File

@ -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

View File

@ -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)