mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
chore(CI): using container
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
f1be0b3f99
commit
4a05db1fe7
23
.github/workflows/go.yml
vendored
23
.github/workflows/go.yml
vendored
@ -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
|
||||
|
2
Makefile
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user