Skip to content

Commit

Permalink
build cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
attachmentgenie committed Feb 16, 2022
1 parent 887a85d commit 8d06165
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Build
run: go build -v ./...
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: build --snapshot --rm-dist

- name: Test
run: go test -v ./...
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ clean: ## Clean up build
@echo "Cleaning local bin directory..."
@rm -rf bin/

compile: ## Build for all supported OSes
goreleaser build --snapshot --rm-dist
snapshot: ## Build artifacts without releasing
goreleaser release --snapshot --rm-dist

compile: release ## Alias for release
release: ## Build for all supported OSes
release: ## Build release for all supported OSes
goreleaser release

0 comments on commit 8d06165

Please sign in to comment.