Browse Source
Merge pull request #2288 from logband/master
Merge pull request #2288 from logband/master
feature(cross-platform): add multi-arch support to releasepull/2289/head
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 103 additions and 11 deletions
-
51.github/workflows/binary_test.yml
-
14.github/workflows/container_latest.yml
-
15.github/workflows/container_release.yml
-
12.github/workflows/container_test.yml
-
4.github/workflows/go.yml
-
4.github/workflows/release.yml
-
8.github/workflows/release_binaries.yml
-
4docker/Dockerfile
@ -0,0 +1,51 @@ |
|||||
|
name: Cross-platform binary build test |
||||
|
|
||||
|
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] |
||||
|
exclude: |
||||
|
- goarch: arm |
||||
|
goos: darwin |
||||
|
- goarch: 386 |
||||
|
goos: darwin |
||||
|
- goarch: arm |
||||
|
goos: windows |
||||
|
- goarch: arm64 |
||||
|
goos: windows |
||||
|
|
||||
|
concurrency: |
||||
|
group: ${{ github.head_ref }}/binary_test/${{ matrix.goos }}/${{ matrix.goarch }} |
||||
|
cancel-in-progress: true |
||||
|
|
||||
|
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: 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 . |
Write
Preview
Loading…
Cancel
Save
Reference in new issue