Skip to content

Commit

Permalink
up build for arm 2022-08-31
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Aug 31, 2022
1 parent f57e783 commit eb9b54f
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/build/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ builds:
- linux
goarch:
- amd64
- arm64
archives:
- format: zip

Expand Down
23 changes: 23 additions & 0 deletions .github/build/linuxarm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
project_name: scan4all
builds:
- id: scan4all-linux
ldflags:
- -s -w
binary: scan4all
env:
- CGO_ENABLED=1
main: main.go
goos:
- linux
goarch:
- arm64
archives:
- format: zip

checksum:
name_template: "{{ .ProjectName }}-linux-checksums.txt"
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,36 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-linux-arm64:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: armv6
distro: ubuntu18.04
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Install Dependences
run: sudo apt install -yy libpcap-dev upx

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release -f .github/build/linuxarm64.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


build-windows:
runs-on: windows-latest
steps:
Expand Down

0 comments on commit eb9b54f

Please sign in to comment.