Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

feature(ci): simplify go binary test build

Alexanderb4de7c09e77c
diff --git a/.github/workflows/binary_test.yml b/.github/workflows/binary_test.yml
index 87e3347a09..b575c9612d 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 .