Prettier update progress tracker using bubbletea #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Build, test, publish aocli | |
on: | |
push: | |
tags: | |
- 'aocli-v*' | |
jobs: | |
build: | |
name: Publish for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
artifact_name: aocli | |
asset_name: linux-amd64-${{ github.ref_name }} | |
- os: windows-latest | |
artifact_name: aocli.exe | |
asset_name: windows-amd64-${{ github.ref_name }} | |
- os: macos-latest | |
artifact_name: aocli | |
asset_name: darwin-amd64-${{ github.ref_name }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Tidy modules | |
run: go mod tidy | |
- name: Test | |
run: go test -v ./... | |
- name: Build aocli | |
run: go build -v -o ./${{ matrix.artifact_name }} ./cmd/aocli | |
- name: Upload binaries to artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.asset_name }} | |
path: ./${{ matrix.artifact_name }} |