diff options
| author | Alexander <4584443+DragonStuff@users.noreply.github.com> | 2021-08-28 10:53:24 +0900 |
|---|---|---|
| committer | Alexander <4584443+DragonStuff@users.noreply.github.com> | 2021-08-28 10:53:24 +0900 |
| commit | ee52f29c3315443b85ef67113dd68ab1853cf1f8 (patch) | |
| tree | 9b2d7e660c00870022892bde5d833abc6188d16a /.github | |
| parent | ba45852ca5b090ac81d17ac45e9f8f591dbaf372 (diff) | |
| download | seaweedfs-ee52f29c3315443b85ef67113dd68ab1853cf1f8.tar.xz seaweedfs-ee52f29c3315443b85ef67113dd68ab1853cf1f8.zip | |
feature(ci): recognise more arches and add build tests
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/container_release.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/container_test.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/release_test.yml | 46 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/container_release.yml b/.github/workflows/container_release.yml index 1b155b7bd..3c66c7215 100644 --- a/.github/workflows/container_release.yml +++ b/.github/workflows/container_release.yml @@ -1,4 +1,5 @@ name: Build Release Containers + on: push: tags: diff --git a/.github/workflows/container_test.yml b/.github/workflows/container_test.yml index dbb542e54..7ba460cf2 100644 --- a/.github/workflows/container_test.yml +++ b/.github/workflows/container_test.yml @@ -1,4 +1,5 @@ name: Test Building Container Images + on: push: pull_request: diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml new file mode 100644 index 000000000..d99d40620 --- /dev/null +++ b/.github/workflows/release_test.yml @@ -0,0 +1,46 @@ +name: Build Dev Binaries + +on: + push: + pull_request: + workflow_dispatch: [] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin, freebsd, netbsd, openbsd] + goarch: [amd64, arm, arm64, 386, ppc64le, s390x] + exclude: + - goarch: arm + goos: darwin + - goarch: 386 + goos: darwin + - goarch: ppc64le + goos: darwin + - goarch: s390x + goos: darwin + - goarch: arm + goos: windows + - goarch: arm64 + goos: windows + - goarch: ppc64le + goos: windows + - goarch: s390x + goos: windows + + steps: + + - 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' |
