Skip to content

Commit

Permalink
Disable CGo
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneazaceta authored Aug 29, 2024
1 parent bfb5838 commit 3cb0973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cb0973

Please sign in to comment.