Files
actions/go-build/action.yml
renovate[bot] 8d9f6811d7 feat(github-action): update actions/setup-go (v5.4.0 → v5.5.0) (#134)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 00:38:05 +00:00

35 lines
803 B
YAML

---
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
name: Go Build
description: 'Builds the Go project.'
author: 'Ismo Vuorinen'
branding:
icon: package
color: blue
inputs:
go-version:
description: 'Go version to use.'
required: false
destination:
description: 'Build destination directory.'
required: false
default: './bin'
runs:
using: composite
steps:
- name: Detect Go Version
uses: ivuorinen/actions/go-version-detect@main
- name: Setup Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: '${{ steps.detect-go-version.outputs.go-version }}'
- name: Build Go Project
shell: bash
run: |
go build -o ${{ inputs.destination }} ./...