Skip to content

Commit c46db99

Browse files
chore: correct build
1 parent 88d5950 commit c46db99

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci-projects.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ jobs:
1818
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1919
with:
2020
ref: ${{ github.event.pull_request.head.sha }}
21+
path: 2ms
2122

2223
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2324
with:
2425
go-version: "^1.22"
2526

26-
- uses: actions/checkout@v4
27-
with:
28-
repository: Checkmarx-CxSast/2ms-internal
29-
path: 2ms
30-
3127
- name: Build 2ms Binary
28+
env:
29+
CGO_ENABLED: 0
30+
GOOS: linux
31+
GOARCH: amd64
3232
run: |
3333
cd $GITHUB_WORKSPACE/2ms
34-
go build -o $GITHUB_WORKSPACE/2ms/dist/2ms main.go
34+
go build -ldflags "-s -w" -a -installsuffix cgo -o $GITHUB_WORKSPACE/2ms/dist/2ms main.go
3535
chmod +x $GITHUB_WORKSPACE/2ms/dist/2ms
3636
3737
- name: Checkout CLI repo

0 commit comments

Comments
 (0)