Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit beee797

Browse files
committed
fixup! Disable cgo for windows build
1 parent 16952dd commit beee797

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ jobs:
2020
# p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
2121
# p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
2222
- name: Build
23-
run: ./ci/steps/build.sh
23+
# run: ./ci/steps/build.sh
24+
run: |
25+
go build -ldflags "-X cdr.dev/coder-cli/internal/version.Version=vdean" -o ./ci/bin/coder-cli-windows.exe ./cmd/coder
2426
env:
2527
AC_USERNAME: ${{ secrets.AC_USERNAME }}
2628
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
29+
GOOS: windows
30+
GOARCH: '386'
31+
CGO_ENABLED: '0'
2732
- name: Upload
2833
uses: actions/upload-artifact@v2
2934
with:

ci/steps/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ else
5757
echo "--- please use an OSX machine to build Darwin tars."
5858
fi
5959

60-
# CGO_ENABLED=0 GOOS=linux GOARCH=amd64 build
60+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 build
6161
CGO_ENABLED=0 GOOS=windows GOARCH=386 build

0 commit comments

Comments
 (0)