Skip to content
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: fixes macOS builds #1019

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

ci: fixes macOS builds #1019

wants to merge 1 commit into from

Conversation

mrpollo
Copy link

@mrpollo mrpollo commented Nov 12, 2024

This pr fixes the macOS CI

@farhangnaderi
Copy link

This pr fixes the macOS CI

Thanks Ramon!

@facontidavide
Copy link
Owner

Thanks, but all the other builds are failing (see CI)

@farhangnaderi
Copy link

seems the touch ups with protobuf are failing. I will take a look.

@farhangnaderi
Copy link

farhangnaderi commented Nov 18, 2024

Thanks, but all the other builds are failing (see CI)

It should be ok now.
Edit: Our local Actions passed but not here.

COMPILE.md Outdated
@@ -118,7 +120,7 @@ export LDFLAGS="$QT_HOME/lib"
Clone the repository into **~/plotjuggler_ws**:

```shell
git clone https://github.com/facontidavide/PlotJuggler.git ~/plotjuggler_ws/src/PlotJuggler
git clone https://github.com/PX4/PlotJuggler.git ~/plotjuggler_ws/src/PlotJuggler
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly 😄

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad! Done.

@@ -10,24 +10,24 @@ endif()
find_package(ZeroMQ QUIET)

if(ZeroMQ_FOUND)
message(STATUS "[ZeroMQ] found")
# message(STATUS "[ZeroMQ] found")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please cleanup comments?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is going on here?

Are you intentionally removing ZeroMQ plugin?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was. Seems ZMQ library is not found sometimes on Mac. I think what I added would tolerate it and pass the build if it cannot find it.

@mrpollo mrpollo force-pushed the main branch 5 times, most recently from ed79ea6 to dc9cb8c Compare November 18, 2024 17:32
@mrpollo
Copy link
Author

mrpollo commented Nov 18, 2024

@facontidavide we made a few changes can you please approve the workflow runs? thank you

@farhangnaderi
Copy link

farhangnaderi commented Dec 19, 2024

I rebased and seems on local repo it passed all CI checks!

Copy link
Owner

@facontidavide facontidavide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments from @mrpollo

@RicardoM17
Copy link

I have made a PR with the requested changes from the review of this PR. All should be ok but please confirm. If so feel free to merge that one and close this one, or cherry-pick that commit here (I couldn't push to this branch directly). From my side there is no preference.

Hope that is ok @farhangnaderi . Thanks for the fix also @mrpollo

@farhangnaderi
Copy link

I have made a PR with the requested changes from the review of this PR. All should be ok but please confirm. If so feel free to merge that one and close this one, or cherry-pick that commit here (I couldn't push to this branch directly). From my side there is no preference.

Hope that is ok @farhangnaderi . Thanks for the fix also @mrpollo

Thanks @RicardoM17 . I am not sure how this PR would be different. The issue it makes is zmq not found if we want to have it built.

@farhangnaderi
Copy link

I have made a PR with the requested changes from the review of this PR. All should be ok but please confirm. If so feel free to merge that one and close this one, or cherry-pick that commit here (I couldn't push to this branch directly). From my side there is no preference.
Hope that is ok @farhangnaderi . Thanks for the fix also @mrpollo

Thanks @RicardoM17 . I am not sure how this PR would be different. The issue it makes is zmq not found if we want to have it built.

This is the issue I am talking about, that is why I had suppressed zmq.

[ 85%] Automatic MOC and UIC for target DataStreamZMQ
[ 85%] Built target DataStreamZMQ_autogen
[ 85%] Generating ui_datastream_zmq.h
[ 86%] Building CXX object plotjuggler_plugins/DataStreamZMQ/CMakeFiles/DataStreamZMQ.dir/DataStreamZMQ_autogen/mocs_compilation.cpp.o
In file included from /Users/farhang/plotjuggler_ws/build/PlotJuggler/plotjuggler_plugins/DataStreamZMQ/DataStreamZMQ_autogen/mocs_compilation.cpp:2:
In file included from /Users/farhang/plotjuggler_ws/build/PlotJuggler/plotjuggler_plugins/DataStreamZMQ/DataStreamZMQ_autogen/EWIEGA46WW/moc_datastream_zmq.cpp:10:
In file included from /Users/farhang/plotjuggler_ws/build/PlotJuggler/plotjuggler_plugins/DataStreamZMQ/DataStreamZMQ_autogen/EWIEGA46WW/../../../../../../src/PlotJuggler/plotjuggler_plugins/DataStreamZMQ/datastream_zmq.h:9:
/Users/farhang/plotjuggler_ws/build/PlotJuggler/plotjuggler_plugins/DataStreamZMQ/DataStreamZMQ_autogen/EWIEGA46WW/../../../../../../src/PlotJuggler/plotjuggler_plugins/DataStreamZMQ/zmq.hpp:36:10: fatal error: 'zmq.h' file not found
   36 | #include <zmq.h>
      |          ^~~~~~~
1 error generated.
make[2]: *** [plotjuggler_plugins/DataStreamZMQ/CMakeFiles/DataStreamZMQ.dir/DataStreamZMQ_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [plotjuggler_plugins/DataStreamZMQ/CMakeFiles/DataStreamZMQ.dir/all] Error 2

Pr fix ci (#3)

 ci: Fixes macOS builds (#1)

adds runners for both Intel and Apple silicon macs

---------

Co-authored-by: Daniel Agar <[email protected]>
Co-authored-by: Ramon Roche <[email protected]>
@farhangnaderi farhangnaderi force-pushed the main branch 2 times, most recently from e71e45c to 6fd39d2 Compare January 13, 2025 06:19
@farhangnaderi
Copy link

@mrpollo @facontidavide You may double check.
Thanks,

Copy link
Author

@mrpollo mrpollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are almost there, I left a few comments please review

key: ${{ runner.os }}-QtCache
- name: Prepare Homebrew and Install Dependencies
run: |
rm -rf /usr/local/var/homebrew/locks
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary? seems like it goes against homebrew policy

@@ -3,7 +3,6 @@ name: ubuntu
on: [push, pull_request]

jobs:

ubuntu-build:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please revert the change to this file?

@@ -101,4 +101,4 @@ Component.prototype.componentSelectionPageEntered = function()
if (installer.fileExists(dir) && installer.fileExists(dir + "/maintenancetool.exe")) {
installer.execute(dir + "/maintenancetool.exe", ["purge", "-c"]);
}
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also make sure this file isn't touched by this pr?

@@ -110,4 +110,4 @@
</widget>
<resources/>
<connections/>
</ui>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants