-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ci] Cross build for architectures #5142
Conversation
eaba443
to
aa15164
Compare
aa15164
to
f8d9624
Compare
Codecov Report
@@ Coverage Diff @@
## main #5142 +/- ##
=======================================
Coverage 90.34% 90.34%
=======================================
Files 182 182
Lines 11031 11031
=======================================
Hits 9966 9966
Misses 840 840
Partials 225 225 Continue to review full report at Codecov.
|
95cdb88
to
557531e
Compare
Change log not required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on, any thoughts on how this could be kept in sync w/ the releases repo? @jpkrohling any ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this @hickeyma! I left a suggestion to make this more aligned with the 'releases' repo, otherwise it looks good to me.
any thoughts on how this could be kept in sync w/ the releases repo?
My 2 cents is that the os-arch combinations we release will be updated very infrequently and thus it would probably be fine to just keep these in sync manually.
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about having the same matrix as in opentelemetry-collector-releases? See here. This would help us keep them in sync.
Granted, this will duplicate some testing (if you go test
on linux+amd64 you are already building for that), but I think that's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I have updated the matrix to match the opentelemetry-collector-releases matrix. There is one difference and that is the Darwin 386 build is no longer supported by Go. This is because it dropped support for 32-bit binaries on macOS in Go 1.15.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that, created open-telemetry/opentelemetry-collector-releases/issues/97 to track this
This job will help to see if any issues introduced to cross binary builds, when a commit is pushed. Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
557531e
to
0af2172
Compare
Update following review comment: open-telemetry#5142 (comment) Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
Go 1.15 dropped support for 32-bit binaries on macOS: https://go.dev/doc/go1.15 Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks for the reviews folks. |
* [ci] Do cross architecture build of collector This job will help to see if any issues introduced to cross binary builds, when a commit is pushed. Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> * Sync cross build list with opentelemetry-collector-releases Update following review comment: open-telemetry#5142 (comment) Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> * Disable darwin 386 build Go 1.15 dropped support for 32-bit binaries on macOS: https://go.dev/doc/go1.15 Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
Add support to CI to build collector for architectures: Linux 386 and ARM64, and Windows 386. The binaries for these architectures are released in collector releases. This GitHub Actions job will help to see if any issues are introduced to cross binary builds when a commit is pushed.
Fix #5031
Signed-off-by: Martin Hickey martin.hickey@ie.ibm.com