Skip to content

chore: fix missing help text, move vars to const (#86) #31

chore: fix missing help text, move vars to const (#86)

chore: fix missing help text, move vars to const (#86) #31

Workflow file for this run

name: Build
on:
push:
tags: [v*]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: extractions/setup-just@v3
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache: true
- run: go mod download
- uses: dawidd6/action-get-tag@v1
id: tag
- run: just test
- name: linux_amd64
env:
TAG: ${{steps.tag.outputs.tag}}
GOOS: linux
GOARCH: amd64
run: just build
- name: linux_arm64
env:
TAG: ${{steps.tag.outputs.tag}}
GOOS: linux
GOARCH: arm64
run: just build
- name: darwin_amd64
env:
TAG: ${{steps.tag.outputs.tag}}
GOOS: darwin
GOARCH: amd64
run: just build
- name: darwin_arm64
env:
TAG: ${{steps.tag.outputs.tag}}
GOOS: darwin
GOARCH: arm64
run: just build
- name: windows_amd64
env:
TAG: ${{steps.tag.outputs.tag}}
GOOS: windows
GOARCH: amd64
EXT: .exe
run: just build
- name: windows_arm64
env:
TAG: ${{steps.tag.outputs.tag}}
GOOS: windows
GOARCH: arm64
EXT: .exe
run: just build
- name: android
env:
TAG: ${{steps.tag.outputs.tag}}
GOOS: android
GOARCH: arm64
run: just build
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "builds/*"
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
allowUpdates: true