From 9f49be0d78c5c0cfe8312b7c4eef6124eee11561 Mon Sep 17 00:00:00 2001 From: Navyum <36869790+Navyum@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:21:12 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44386ad..de47713 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: GOOS=$(echo ${{ matrix.os }} | sed 's/-latest//') GOARCH=${{ matrix.arch }} OUTPUT_NAME=shimoExporter-${GOOS}-${GOARCH} - go mod init shimoExporter && go mod tidy && go build -o $OUTPUT_NAME ./app/main.go + export CGO_ENABLED=1 && go mod init shimoExporter && go mod tidy && go build -o $OUTPUT_NAME ./app/main.go - name: Upload artifact uses: actions/upload-artifact@v3