diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5b47b53..26616c1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -9,13 +9,8 @@ on: types: [created, edited] jobs: - build: runs-on: ubuntu-latest - strategy: - matrix: - goos: [linux] - goarch: [amd64] steps: - uses: actions/checkout@v3 @@ -24,8 +19,10 @@ jobs: with: go-version: 1.19 - - name: Build - run: CGO_ENABLED=0 go build -ldflags="-extldflags=-static" -o HFP *.go + - name: Build Binaries + run: | + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-extldflags=-static" -o HFP_amd64 *.go + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-extldflags=-static" -o HFP_arm64 *.go - name: Upload Release uses: boxpositron/upload-multiple-releases@1.0.7 @@ -33,7 +30,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: release_config: | - ./HFP + ./HFP_amd64 + ./HFP_arm64 tag_name: ${{ github.ref_name }} release_name: hfp ${{ github.ref_name }} draft: false