Skip to content

Commit

Permalink
Try cross-compiling to amd64
Browse files Browse the repository at this point in the history
The binaries compiled through github actions don't work in the clusters. The executable complains about the libc library being too old.
  • Loading branch information
ireneazaceta authored Aug 29, 2024
1 parent 930d412 commit 54748ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
Expand All @@ -25,10 +25,10 @@ jobs:
go get .
- name: Build for "System Temp" sensor
run: go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=System Temp'" -o ipmitool_exporter ./main.go
run: GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=System Temp'" -o ipmitool_exporter ./main.go

- name: Build for "Inlet Temp" sensor (ekhi)
run: go build -ldflags="-X 'main.iPMI_TEMP_SENSOR=Inlet Temp'" -o ipmitool_exporter-ekhi ./main.go
run: GOOS=linux GOARCH=amd64 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 54748ab

Please sign in to comment.