Implements install, updating, uninstall and more #7
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
name: build | |
on: | |
push: | |
tags: [v**] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- name: setup scoop | |
uses: MinoruSekine/setup-scoop@v3 | |
with: | |
buckets: main extras | |
- name: Run tests | |
shell: bash | |
run: | | |
go test -v -race -covermode=atomic ./... | |
- name: Build artifact | |
shell: bash | |
run: | | |
go build -trimpath -ldflags "-w -s" -o spoon.exe ./cmd/spoon | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: spoon.exe | |
path: spoon.exe | |