[ci] Specify 7 as arm version for arm build in CI #7873
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Previously, we introduced linux/arm to the cross build tests in the CI to add an armv7 release.
However, without specifying the
GOARM
variable, it falls back to the default value. The default value is not always7
as it depends on the platform that we are building on. There are changes to default to GOARM=7 for all non-arm systems in the upcoming golang versionWe are building on
linux/amd64
machine in github action soGOARM
defaults to5
which is different from what we want.In this pull request, I added
GOARM
as an environment variable andgoarm
in the arm matrix option so we can explicit setGOARM=7
.Testing:
Able to run
make otelcoreol
with the following configurations locallyGOOS=linux
,GOARCH=arm
,GOARM=7
GOOS=linux
,GOARCH=arm64
,GOARM=
GOOS=darwin
,GOARCH=amd64
,GOARM=