Commit a8782dd 1 parent 5707a73 commit a8782dd Copy full SHA for a8782dd
File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- name : Install dependencies
25
25
run : |
26
+ go get
26
27
go mod tidy
27
28
- name : Get Set
28
29
run : |
@@ -35,12 +36,12 @@ jobs:
35
36
36
37
- name : Build LINUX
37
38
run : |
38
- env GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_linux_amd64 main.go
39
- env GOOS=linux GOARCH=arm64 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_linux_arm64 main.go
39
+ env GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_linux_amd64 main/main .go
40
+ env GOOS=linux GOARCH=arm64 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_linux_arm64 main/main .go
40
41
- name : Build WINDOWS
41
42
run : |
42
- env GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_windows_amd64.exe main.go
43
- env GOOS=windows GOARCH=386 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_windows_386.exe main.go
43
+ env GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_windows_amd64.exe main/main .go
44
+ env GOOS=windows GOARCH=386 go build -trimpath -ldflags "-s -w" -o Serverless_PortScan_windows_386.exe main/main .go
44
45
- name : Create Zip Archive
45
46
run : |
46
47
upx -9 Serverless_PortScan*
You can’t perform that action at this time.
0 commit comments