release_arm.yaml 815 B

123456789101112131415161718192021222324252627282930
  1. name: Build and publish arm binaries (releases only)
  2. on:
  3. release:
  4. types: [created]
  5. jobs:
  6. releases-matrix:
  7. name: Release Go Binary
  8. runs-on: ubuntu-latest
  9. env:
  10. CGO_ENABLED: 1
  11. strategy:
  12. matrix:
  13. goos: [linux]
  14. goarch: ["arm", "arm64"]
  15. steps:
  16. - name: checkout code
  17. uses: actions/checkout@v2
  18. - name: build binaries
  19. uses: wangyoucao577/go-release-action@v1.22
  20. with:
  21. github_token: ${{ secrets.GITHUB_TOKEN }}
  22. goversion: 1.17
  23. goos: ${{ matrix.goos }}
  24. goarch: ${{ matrix.goarch }}
  25. build_command: bash -ex ./build_arm.sh
  26. pre_command: bash -ex ./install-deps-arm.sh
  27. binary_name: "ovpn-admin"
  28. asset_name: ovpn-admin-${{ matrix.goos }}-${{ matrix.goarch }}