You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB

  1. name: Build Dev Binaries
  2. on:
  3. push:
  4. pull_request:
  5. workflow_dispatch: []
  6. jobs:
  7. build:
  8. name: Build
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. goos: [linux, windows, darwin, freebsd, netbsd, openbsd]
  13. goarch: [amd64, arm, arm64, 386, ppc64le, s390x]
  14. exclude:
  15. - goarch: arm
  16. goos: darwin
  17. - goarch: 386
  18. goos: darwin
  19. - goarch: ppc64le
  20. goos: darwin
  21. - goarch: s390x
  22. goos: darwin
  23. - goarch: arm
  24. goos: windows
  25. - goarch: arm64
  26. goos: windows
  27. - goarch: ppc64le
  28. goos: windows
  29. - goarch: s390x
  30. goos: windows
  31. steps:
  32. - name: Check out code into the Go module directory
  33. uses: actions/checkout@v2
  34. - name: Go cross-platform build test
  35. uses: thatisuday/go-cross-build@v1
  36. with:
  37. platforms: ${{ matrix.goos }}/${{ matrix.goarch }}
  38. package: 'weed'
  39. name: 'weed'
  40. dest: '/tmp/dist'