Skip to content

Commit

Permalink
feat: linux arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger committed May 3, 2024
1 parent 4faf675 commit cf4d960
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/linux-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:18.04

RUN apt-get update && \
apt-get install -y ca-certificates gcc-multilib g++-multilib software-properties-common wget && \
apt-get install -y ca-certificates gcc-multilib g++-multilib gcc-aarch64-linux-gnu gcc-7-aarch64-linux-gnu software-properties-common wget && \
\
add-apt-repository ppa:git-core/ppa && \
\
Expand Down
10 changes: 10 additions & 0 deletions .goreleaser/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,20 @@ builds:
goarch:
- 386
- amd64
- arm64
ldflags:
- -w
- -X "github.com/bearer/bearer/cmd/bearer/build.Version={{.Version}}"
- -X "github.com/bearer/bearer/cmd/bearer/build.CommitSHA={{.Commit}}"
overrides:
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
- goos: linux
goarch: amd64
env:
- CC=gcc

checksum:
name_template: "checksums.txt"
Expand Down
1 change: 1 addition & 0 deletions contrib/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ get_binaries() {
darwin/arm64) BINARIES="bearer" ;;
linux/386) BINARIES="bearer" ;;
linux/amd64) BINARIES="bearer" ;;
linux/arm64) BINARIES="bearer" ;;
*)
log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new"
exit 1
Expand Down

0 comments on commit cf4d960

Please sign in to comment.