aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <4584443+DragonStuff@users.noreply.github.com>2021-08-28 11:17:03 +0900
committerAlexander <4584443+DragonStuff@users.noreply.github.com>2021-08-28 11:17:03 +0900
commitb4de7c09e77ca49da9cb58966b0678a5164c2984 (patch)
tree2c14440c151083212e72881bc86f693949404c83
parentb68e76bbace24528d0c4d8c75ac9b706a94b0369 (diff)
downloadseaweedfs-b4de7c09e77ca49da9cb58966b0678a5164c2984.tar.xz
seaweedfs-b4de7c09e77ca49da9cb58966b0678a5164c2984.zip
feature(ci): simplify go binary test build
-rw-r--r--.github/workflows/binary_test.yml23
1 files changed, 16 insertions, 7 deletions
diff --git a/.github/workflows/binary_test.yml b/.github/workflows/binary_test.yml
index 87e3347a0..b575c9612 100644
--- a/.github/workflows/binary_test.yml
+++ b/.github/workflows/binary_test.yml
@@ -38,13 +38,22 @@ jobs:
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
uses: actions/checkout@v2
- - name: Go cross-platform build test
- uses: thatisuday/go-cross-build@v1
- with:
- platforms: ${{ matrix.goos }}/${{ matrix.goarch }}
- package: 'weed'
- name: 'weed'
- dest: '/tmp/dist'
+ - name: Get dependencies
+ run: |
+ cd weed; go get -v -t -d ./...
+ if [ -f Gopkg.toml ]; then
+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
+ dep ensure
+ fi
+
+ - name: Build
+ run: cd weed; GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v .