mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
feature(ci): recognise more arches and add build tests
This commit is contained in:
parent
ba45852ca5
commit
ee52f29c33
1
.github/workflows/container_release.yml
vendored
1
.github/workflows/container_release.yml
vendored
|
@ -1,4 +1,5 @@
|
||||||
name: Build Release Containers
|
name: Build Release Containers
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
|
|
1
.github/workflows/container_test.yml
vendored
1
.github/workflows/container_test.yml
vendored
|
@ -1,4 +1,5 @@
|
||||||
name: Test Building Container Images
|
name: Test Building Container Images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
46
.github/workflows/release_test.yml
vendored
Normal file
46
.github/workflows/release_test.yml
vendored
Normal file
|
@ -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'
|
|
@ -8,7 +8,9 @@ RUN \
|
||||||
elif [ $(uname -m) == "x86_64" ] && [ $(getconf LONG_BIT) == "32" ]; then echo "386"; \
|
elif [ $(uname -m) == "x86_64" ] && [ $(getconf LONG_BIT) == "32" ]; then echo "386"; \
|
||||||
elif [ $(uname -m) == "aarch64" ]; then echo "arm64"; \
|
elif [ $(uname -m) == "aarch64" ]; then echo "arm64"; \
|
||||||
elif [ $(uname -m) == "armv7l" ]; then echo "arm"; \
|
elif [ $(uname -m) == "armv7l" ]; then echo "arm"; \
|
||||||
elif [ $(uname -m) == "armv6l" ]; then echo "arm"; fi;) && \
|
elif [ $(uname -m) == "armv6l" ]; then echo "arm"; \
|
||||||
|
elif [ $(uname -m) == "s390x" ]; then echo "s390x"; \
|
||||||
|
elif [ $(uname -m) == "ppc64le" ]; then echo "ppc64le"; fi;) && \
|
||||||
echo "Building for $ARCH" 1>&2 && \
|
echo "Building for $ARCH" 1>&2 && \
|
||||||
SUPERCRONIC_SHA1SUM=$(echo $ARCH | sed 's/386/e0126b0102b9f388ecd55714358e3ad60d0cebdb/g' | sed 's/amd64/5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85/g' | sed 's/arm64/e2714c43e7781bf1579c85aa61259245f56dbba1/g' | sed 's/arm/47481c3341bc3a1ae91a728e0cc63c8e6d3791ad/g') && \
|
SUPERCRONIC_SHA1SUM=$(echo $ARCH | sed 's/386/e0126b0102b9f388ecd55714358e3ad60d0cebdb/g' | sed 's/amd64/5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85/g' | sed 's/arm64/e2714c43e7781bf1579c85aa61259245f56dbba1/g' | sed 's/arm/47481c3341bc3a1ae91a728e0cc63c8e6d3791ad/g') && \
|
||||||
SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.9/supercronic-linux-$ARCH && \
|
SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.9/supercronic-linux-$ARCH && \
|
||||||
|
|
Loading…
Reference in a new issue