File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
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 }}
9
29
build-mac :
10
30
runs-on : macos-latest
11
31
steps :
You can’t perform that action at this time.
0 commit comments