Skip to content

Commit a8782dd

Browse files
authored
Update go.yml
1 parent 5707a73 commit a8782dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/go.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323

2424
- name: Install dependencies
2525
run: |
26+
go get
2627
go mod tidy
2728
- name: Get Set
2829
run: |
@@ -35,12 +36,12 @@ jobs:
3536

3637
- name: Build LINUX
3738
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
4041
- name: Build WINDOWS
4142
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
4445
- name: Create Zip Archive
4546
run: |
4647
upx -9 Serverless_PortScan*

0 commit comments

Comments
 (0)