-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
Add *BSD / Solaris to the CI #1400
Conversation
9d4a2cf
to
3efdcec
Compare
4692e6e
to
00bca18
Compare
Your latest DragonFlyBSD commit (00bca18) caused a build failure, and I noticed one thing in the build log: The configure scripts detected gcc and tried to use it instead of clang. Did you notice that? Also, the line |
Yes, I was just testing out how DragonFlyBSD works, I was assuming it would be using
The rename if it fails (i.e. the binary was not built) would cause the workflow to fail, I did that since it is the easiest way I could check if the build failed or not. An example of a build failure but not a failed step can be found here |
bf43829
to
3908c1c
Compare
No Unicode support on NetBSD/OpenBSD? |
de9ee10
to
6d1ab41
Compare
e46dec1
to
fb097ad
Compare
I tested out this suggestion and it seem to have worked. Thank you. I have updated the file with the changes. |
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.
LGTM.
You could fixup the set -e
patch into the individual platforms, but that's optional.
.github/workflows/ci.yml
Outdated
export CFLAGS="-I/usr/local/include" | ||
./autogen.sh | ||
./configure --enable-unicode | ||
gmake |
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.
Add the -k
option to the gmake
commands. This would keep the make program running even when there's a build error on one object file. Useful for catching multiple source file errors.
(Other platform targets in this .yml file have this -k
option.)
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.
Good idea, I have updated the command.
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.
Same should be done for regular make too … Good point.
Some ideas, no need to implement them right now:
¹given the right dependencies are installed |
This is not gated by a config-flag. So it is build in automatically (on FreeBSD). /DLange |
Yes, many platforms are supported by PCP - the issue will be ensuring the PCP bits are readily accessible on non-Linux platforms. If possible, it'd be great to get PCP builds for non-Linux platforms here in htop.dev repo, however in practice I think it will be more practical for this to happen via the actual PCP build (which builds a vendored htop git repo via git-subtree). Perhaps best will be if we automate the sync between PCP and htop (currently its manual) so that commits here automatically trigger a PCP build. https://github.com/performancecopilot/pcp/tree/main/vendor/github.com/htop-dev/htop |
@natoscott Thus it's best to skip the PCP stuff in this PR. |
May I bump this PR and mention an issue of it? The " |
You are right, I also over looked this, I can raise a PR to fix this and update the name to |
Add support for building
htop
in DragonFlyBSD / FreeBSD / NetBSD / OpenBSD / Solaris environments in the CI workflow.Workflows adapted from btop's GHAs.