From 3cb09739cacc4e4ccf3e7b13bf38e544e9383672 Mon Sep 17 00:00:00 2001 From: ireneazaceta <108934710+ireneazaceta@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:19:00 +0200 Subject: [PATCH] Disable CGo --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 751f0e0..cfbd182 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,10 +25,10 @@ jobs: go get . - name: Build for "System Temp" sensor - run: env GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=System Temp'" -o ipmitool_exporter ./main.go + run: env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=System Temp'" -o ipmitool_exporter ./main.go - name: Build for "Inlet Temp" sensor (ekhi) - run: env GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=Inlet Temp'" -o ipmitool_exporter-ekhi ./main.go + run: env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=Inlet Temp'" -o ipmitool_exporter-ekhi ./main.go - name: Create a release uses: softprops/action-gh-release@v2