better descriptions and GOARM reset

This commit is contained in:
Kwitsch 2024-04-12 14:06:48 +00:00
parent dc0ec8952f
commit 3cd7279e2f
1 changed files with 11 additions and 5 deletions

View File

@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
goos:
description: "GOOS"
description: "Target OS"
required: true
default: "linux"
type: choice
@ -16,7 +16,7 @@ on:
- openbsd
- darwin
goarch:
description: "GOARCH"
description: "Target architecture"
required: true
default: "amd64"
type: choice
@ -25,7 +25,7 @@ on:
- arm
- arm64
goarm:
description: "GOARM"
description: "Target ARM version(only used with arm architecture)"
required: true
default: "7"
type: choice
@ -54,6 +54,8 @@ jobs:
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v5
@ -80,7 +82,11 @@ jobs:
GOOS: ${{ inputs.goos }}
GOARCH: ${{ inputs.goarch }}
GOARM: ${{ inputs.goarm }}
run: make build
run: |
if [[ "${{ inputs.goarch }}" != "arm" ]]; then
unset GOARM
fi
make build
- name: Rename binary
run: |
@ -93,7 +99,7 @@ jobs:
fi
- name: Store build artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: blocky
path: bin/blocky*