mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-19 06:53:32 +08:00
feature(ci): simplify go binary test build
This commit is contained in:
parent
b68e76bbac
commit
b4de7c09e7
23
.github/workflows/binary_test.yml
vendored
23
.github/workflows/binary_test.yml
vendored
@ -38,13 +38,22 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Set up Go 1.x
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ^1.13
|
||||||
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Go cross-platform build test
|
- name: Get dependencies
|
||||||
uses: thatisuday/go-cross-build@v1
|
run: |
|
||||||
with:
|
cd weed; go get -v -t -d ./...
|
||||||
platforms: ${{ matrix.goos }}/${{ matrix.goarch }}
|
if [ -f Gopkg.toml ]; then
|
||||||
package: 'weed'
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
name: 'weed'
|
dep ensure
|
||||||
dest: '/tmp/dist'
|
fi
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cd weed; GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v .
|
||||||
|
Loading…
Reference in New Issue
Block a user