Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
chore: update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaiba committed May 12, 2023
1 parent baf29c4 commit 5153f02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,33 @@
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- rm -rf ./dist
- rm -f ./wasm/*.wasm
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
- go generate ./wasm/wasm.go

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/kwilteam/kuneiform/version.Version={{.Version}}
- -X github.com/kwilteam/kuneiform/version.Commit={{.Commit}}
- -X github.com/kwilteam/kuneiform/version.Date={{.Date}}
- -X github.com/kwilteam/kuneiform/version.BuiltBy=goreleaser

# pro feature
#include:
# - from_file:
# path: ./wasm/kuneiform.wasm

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
Expand Down
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.DEFAULT_GOAL := help

.PHONY: help, download, wasm, build
.PHONY: help download wasm build

help:
# 20s is the width of the first column
@# 20s is the width of the first column
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

download: ## download dependencies
@echo Download go.mod dependencies
@go mod download

build:
build: ## build from current commit
@echo Build parser
@goreleaser build --snapshot --clean

Expand Down
1 change: 1 addition & 0 deletions wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.wasm

0 comments on commit 5153f02

Please sign in to comment.