Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include arm64 as a build option for OSX #21

Merged
merged 2 commits into from
Mar 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ A (much) faster go version of tmck-code/pokesay
```shell
bash -c "$(curl https://raw.githubusercontent.com/tmck-code/pokesay-go/master/scripts/install.sh)" bash darwin amd64
```
- OSX / darwin (M1)
```shell
bash -c "$(curl https://raw.githubusercontent.com/tmck-code/pokesay-go/master/scripts/install.sh)" bash darwin arm64
```
- Linux x64
```shell
bash -c "$(curl https://raw.githubusercontent.com/tmck-code/pokesay-go/master/scripts/install.sh)" bash linux amd64
Expand Down
1 change: 1 addition & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN go build src/pokedex.go && \
./pokedex -from /tmp/cows/ -to build/cows.gob

RUN echo "building darwin / amd64" && GOOS=darwin GOARCH=amd64 go build -o pokesay-darwin-amd64 pokesay.go && \
echo "building darwin / arm64" && GOOS=darwin GOARCH=arm64 go build -o pokesay-darwin-arm64 pokesay.go && \
echo "building linux / amd64" && GOOS=linux GOARCH=amd64 go build -o pokesay-linux-amd64 pokesay.go && \
echo "building windows / amd64" && GOOS=windows GOARCH=amd64 go build -o pokesay-windows-amd64.exe pokesay.go && \
echo "building android / arm64" && GOOS=android GOARCH=arm64 go build -o pokesay-android-arm64 pokesay.go
1 change: 1 addition & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build/release:
@docker create --name pokesay pokesay-go:latest
docker cp pokesay:/usr/local/src/pokesay-linux-amd64 .
docker cp pokesay:/usr/local/src/pokesay-darwin-amd64 .
docker cp pokesay:/usr/local/src/pokesay-darwin-arm64 .
docker cp pokesay:/usr/local/src/pokesay-windows-amd64.exe .
docker cp pokesay:/usr/local/src/pokesay-android-arm64 .
@docker rm -f pokesay
Expand Down