Skip to content

Commit

Permalink
Merge pull request #35 from bartekpacia/more_builds
Browse files Browse the repository at this point in the history
Add arm64 builds for linux and darwin
  • Loading branch information
dearchap authored Jan 4, 2025
2 parents efb5a39 + bd31107 commit 5bda8b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,18 @@ build: deps
-o gfmrun-linux-amd64-$(VERSION_VALUE) \
-ldflags "$(GOBUILD_LDFLAGS)" \
./cmd/gfmrun/main.go && \
GOOS=linux GOARCH=arm64 $(GO) build \
-o gfmrun-linux-arm64-$(VERSION_VALUE) \
-ldflags "$(GOBUILD_LDFLAGS)" \
./cmd/gfmrun/main.go && \
GOOS=darwin GOARCH=amd64 $(GO) build \
-o gfmrun-darwin-amd64-$(VERSION_VALUE) \
-ldflags "$(GOBUILD_LDFLAGS)" \
./cmd/gfmrun/main.go && \
GOOS=darwin GOARCH=arm64 $(GO) build \
-o gfmrun-darwin-arm64-$(VERSION_VALUE) \
-ldflags "$(GOBUILD_LDFLAGS)" \
./cmd/gfmrun/main.go && \
GOOS=windows GOARCH=amd64 $(GO) build \
-o gfmrun-windows-amd64-$(VERSION_VALUE).exe \
-ldflags "$(GOBUILD_LDFLAGS)" \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ import (
"fmt"
"os"

"golang.org/x/example/stringutil"
"golang.org/x/example/hello/reverse"
)

func main() {
fmt.Printf("---> %v\n", os.Args[0])
fmt.Println("we could make an entire album out of this one sound")
fmt.Println(stringutil.Reverse("[SQUEAK INTENSIFIES]"))
fmt.Println(reverse.String("[SQUEAK INTENSIFIES]"))
}
```

Expand Down

0 comments on commit 5bda8b7

Please sign in to comment.