Skip to content

Commit

Permalink
release for arm64 (#107)
Browse files Browse the repository at this point in the history
build for linux-arm64 in addition to amd64
  • Loading branch information
wadey authored Apr 7, 2023
1 parent 14e14fe commit 8d05861
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,13 @@ jobs:
asset_path: ./build/go-audit-linux-amd64.tar.gz
asset_name: go-audit-linux-amd64.tar.gz
asset_content_type: application/gzip

- name: Upload linux-arm64
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/go-audit-linux-arm64.tar.gz
asset_name: go-audit-linux-arm64.tar.gz
asset_content_type: application/gzip
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export GO111MODULE

LDFLAGS = -X main.Build=$(BUILD_NUMBER)

ALL = linux-amd64
ALL = linux-amd64 linux-arm64

bin:
go build -ldflags "$(LDFLAGS)"
Expand Down
4 changes: 2 additions & 2 deletions extras_containers.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build amd64 && !nocontainers
// +build amd64,!nocontainers
//go:build !nocontainers
// +build !nocontainers

package main

Expand Down

0 comments on commit 8d05861

Please sign in to comment.