This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish arm binaries (releases only) | |
on: | |
release: | |
types: [created] | |
jobs: | |
releases-matrix: | |
name: Release Go Binary | |
runs-on: ubuntu-latest | |
env: | |
CGO_ENABLED: 1 | |
strategy: | |
matrix: | |
goos: [linux] | |
goarch: ["arm", "arm64"] | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: build binaries | |
uses: wangyoucao577/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
goversion: 1.17 | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
build_command: bash -ex ./build_arm.sh | |
pre_command: bash -ex ./install-deps-arm.sh | |
binary_name: "ovpn-admin" | |
asset_name: ovpn-admin-${{ matrix.goos }}-${{ matrix.goarch }} |