We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88d5950 commit c46db99Copy full SHA for c46db99
1 file changed
.github/workflows/ci-projects.yaml
@@ -18,20 +18,20 @@ jobs:
18
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
19
with:
20
ref: ${{ github.event.pull_request.head.sha }}
21
+ path: 2ms
22
23
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
24
25
go-version: "^1.22"
26
- - uses: actions/checkout@v4
27
- with:
28
- repository: Checkmarx-CxSast/2ms-internal
29
- path: 2ms
30
-
31
- name: Build 2ms Binary
+ env:
+ CGO_ENABLED: 0
+ GOOS: linux
+ GOARCH: amd64
32
run: |
33
cd $GITHUB_WORKSPACE/2ms
34
- go build -o $GITHUB_WORKSPACE/2ms/dist/2ms main.go
+ go build -ldflags "-s -w" -a -installsuffix cgo -o $GITHUB_WORKSPACE/2ms/dist/2ms main.go
35
chmod +x $GITHUB_WORKSPACE/2ms/dist/2ms
36
37
- name: Checkout CLI repo
0 commit comments