Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Jun 5, 2023
1 parent 8265bff commit 4ebe1c9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -24,16 +19,19 @@ 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/[email protected]
env:
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
Expand Down

0 comments on commit 4ebe1c9

Please sign in to comment.