mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 06:17:56 +08:00
feature(ci): recognise more arches and add build tests
This commit is contained in:
1
.github/workflows/container_release.yml
vendored
1
.github/workflows/container_release.yml
vendored
@@ -1,4 +1,5 @@
|
||||
name: Build Release Containers
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
|
1
.github/workflows/container_test.yml
vendored
1
.github/workflows/container_test.yml
vendored
@@ -1,4 +1,5 @@
|
||||
name: Test Building Container Images
|
||||
|
||||
on:
|
||||
push:
|
||||
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'
|
Reference in New Issue
Block a user