Skip to content

Commit

Permalink
Add restore to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
masinger committed Jun 12, 2023
1 parent 97d0655 commit ade7a7e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20
go-version: 1.20.0

- name: Build
run: make build
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/masinger/incredible
go 1.20

require (
github.com/pterm/pterm v0.12.62
github.com/spf13/cobra v1.7.0
go.uber.org/zap v1.24.0
gopkg.in/yaml.v3 v3.0.1
Expand All @@ -17,7 +18,6 @@ require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/lithammer/fuzzysearch v1.1.8 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/pterm/pterm v0.12.62 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
Expand Down
25 changes: 14 additions & 11 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,40 @@ endef
clean:
rm -f bin/*

linux-amd64:
restore: go.mod
go get .

linux-amd64: restore
$(call build,linux,amd64)
linux-arm64:
linux-arm64: restore
$(call build,linux,arm64)
linux: linux-amd64 linux-arm64

windows-amd64:
windows-amd64: restore
$(call build,windows,amd64,.exe)
windows: windows-amd64

darwin-arm64:
darwin-arm64: restore
$(call build,darwin,arm64)
darwin-amd64:
darwin-amd64: restore
$(call build,darwin,amd64)
darwin: darwin-amd64 darwin-arm64

freebsd-amd64:
freebsd-amd64: restore
$(call build,freebsd,amd64)
freebsd-arm:
freebsd-arm: restore
$(call build,freebsd,arm)
freebsd: freebsd-amd64 freebsd-arm

openbsd-amd64:
openbsd-amd64: restore
$(call build,openbsd,amd64)
openbsd-arm:
openbsd-arm: restore
$(call build,openbsd,arm)
openbsd: openbsd-amd64 openbsd-arm

netbsd-amd64:
netbsd-amd64: restore
$(call buid,netbsd,amd64)
netbsd-arm:
netbsd-arm: restore
$(call build,netbsd,arm)
netbsd: netbsd-amd64 netbsd-arm

Expand Down

0 comments on commit ade7a7e

Please sign in to comment.