Skip to content

Commit

Permalink
chore: update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Jul 10, 2024
1 parent ae728d6 commit 544e2e1
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 21 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Unshallow
run: git fetch --prune --unshallow
with:
fetch-depth: 0

- uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: checks
name: Test Branch

on:
push:
Expand Down
27 changes: 19 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
.*
*.zip
*.tar
*.out
*.log
/bin/
/tmp/

## Git
!.gitkeep
!.gitignore

## GitHub
!.github/
!.husky/

## Editorconfig
!.editorconfig
!.gitignore

## Husky
!.husky/
!.husky.yaml

## Golang
!.golangci.yml
!.goreleaser.yml
!.husky.yaml
!.yamllint.yaml
/bin/
/coverage.out
/coverage.html
/tmp/
7 changes: 3 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# .goreleaser.yml
# Build customization
version: 2

builds:
- binary: sesamy
main: ./main.go
Expand All @@ -13,7 +13,7 @@ builds:
- amd64
- arm64
goarm:
- 7
- '7'
flags:
- -trimpath
ldflags:
Expand All @@ -32,7 +32,6 @@ changelog:
use: github-native

brews:
# Repository to push the tap to.
- repository:
owner: foomo
name: homebrew-tap
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,22 @@ tidy:
outdated:
@go list -u -m -json all | go-mod-outdated -update -direct

.PHONY: build
## Build binary
build:
@mkdir -p bin
@go build -o bin/sesamy main.go

.PHONY: install
## Install binary
install:
@go build -o ${GOPATH}/bin/sesamy main.go

.PHONY: install.debug
## Install debug binary
install.debug:
@go build -gcflags "all=-N -l" -o ${GOPATH}/bin/sesamy main.go

## Build binary
build:
@mkdir -p bin
@go build -o bin/sesamy main.go

## === Utils ===

## Show help text
Expand Down

0 comments on commit 544e2e1

Please sign in to comment.