Skip to content

Commit

Permalink
ci: update linux builds (#1600)
Browse files Browse the repository at this point in the history
* ci: reapply "ci: add linux arm64 build target" (#1598)

This reverts commit 84098f0.

* ci: drop i386
  • Loading branch information
gotbadger committed May 16, 2024
1 parent f002808 commit 44d807e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/linux-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt-get update && \
) && \
\
apt-get update && \
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin git && \
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin git gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && \
\
wget --output-document=/tmp/go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && \
tar --extract --gunzip --file=/tmp/go.tar.gz --directory=/usr/local && \
Expand Down
8 changes: 7 additions & 1 deletion .goreleaser/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,18 @@ builds:
goos:
- linux
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
- CXX=aarch64-linux-gnu-g++

checksum:
name_template: "checksums.txt"
Expand Down
2 changes: 1 addition & 1 deletion contrib/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ get_binaries() {
case "$PLATFORM" in
darwin/amd64) BINARIES="bearer" ;;
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 44d807e

Please sign in to comment.