Skip to content

Commit 5554ac2

Browse files
committed
fixed #52 2022-08-01
1 parent 30b31dc commit 5554ac2

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/build/mac_arm64.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
env:
2+
- GO111MODULE=on
3+
before:
4+
hooks:
5+
- go mod tidy
6+
project_name: scan4all
7+
builds:
8+
- id: scan4all-darwin
9+
ldflags:
10+
- -s -w
11+
binary: scan4all
12+
env:
13+
- CGO_ENABLED=1
14+
main: main.go
15+
goos:
16+
- darwin
17+
goarch:
18+
- arm64
19+
20+
archives:
21+
- format: zip
22+
replacements:
23+
darwin: macOS
24+
25+
checksum:
26+
name_template: "{{ .ProjectName }}-mac-arm64-checksums.txt"

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ on:
66
workflow_dispatch:
77

88
jobs:
9+
build-mac-arm:
10+
runs-on: macos-latest
11+
steps:
12+
- name: Code checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.18
20+
- name: Install Dependences
21+
run: brew install libpcap
22+
- name: Run GoReleaser
23+
uses: goreleaser/goreleaser-action@v2
24+
with:
25+
version: latest
26+
args: release -f .github/build/mac_arm64.yml --rm-dist
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
929
build-mac:
1030
runs-on: macos-latest
1131
steps:

0 commit comments

Comments
 (0)