feature(ci): recognise more arches and add build tests

This commit is contained in:
Alexander
2021-08-28 10:53:24 +09:00
parent ba45852ca5
commit ee52f29c33
4 changed files with 51 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
name: Build Release Containers
on:
push:
tags:

View File

@@ -1,4 +1,5 @@
name: Test Building Container Images
on:
push:
pull_request:

46
.github/workflows/release_test.yml vendored Normal file
View 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'