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

Add macOS and Ninja jobs to GitHub Actions #276

Merged
merged 9 commits into from
Nov 8, 2019
Merged

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Oct 19, 2019

Furthermore, provide a fix for #265 .

@traversaro
Copy link
Member Author

The problem reported in #265 emerged, so this is blocked until we solve #265 .

.github/workflows/ci.yml Show resolved Hide resolved
brew install ace asio eigen tinyxml swig qt5 gsl pkg-config jpeg tinyxml
# Understand how to export env variables in a os-specific way
export Qt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5
Copy link
Member

Choose a reason for hiding this comment

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

Curiosity: is this no longer necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea, but I wanted to test it.

Copy link
Member Author

@traversaro traversaro Nov 7, 2019

Choose a reason for hiding this comment

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

Apparently it is not necessary anymore, as the test are successful even without setting it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently it is still necessary, as without it the Qt5 GUI are skipped, see in the log:

2019-11-07T17:11:17.9116700Z -- Qt5 and GTK2 not found/selected, skipping iCubSkinGui
2019-11-07T17:11:17.9117690Z -- Qt5 and GTK2 not found/selected, skipping frameGrabberGui2
2019-11-07T17:11:17.9118630Z -- Qt5 and GTK2 not found/selected, skipping skinManagerGui

Copy link
Member Author

Choose a reason for hiding this comment

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

@diegoferigo any idea on how to set export Qt5_DIR=/usr/local/opt/qt5/lib/cmake/Qt5 only for a macos runner without duplicating the build step?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, there's an undocumented method that is all but future proof:

- name: Setting env var
  if: matrix.os == macOS-10.14
  run: |
    echo "::set-env name=Qt5_DIR::/path/to/dir"
    env

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah cool. For the time being I just set Qt5_DIR to /usr/local/opt/qt5/lib/cmake/Qt5 also in Linux, as /usr/local/opt/qt5/lib/cmake/Qt5 is an empty directory in Linux and qt is found just by using the system paths, but this method may be useful.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Cool, thanks for letting me know! Also the logger support is quite interesting

run: |
brew cask install xquartz
brew install ace asio eigen tinyxml swig qt5 gsl pkg-config jpeg tinyxml
Copy link
Collaborator

Choose a reason for hiding this comment

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

'tinyxml' appears twice (actually also in the superbuild README).
What about: boost sqlite libedit ipopt opencv@3 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I will make it compatible with the README's one (that however do not contain boost).

@traversaro
Copy link
Member Author

To avoid being blocked by the Xcode problem, I switched to use Ninja + Make. If the problem is also reproducible with Ninja, it is easier to debug on a Linux machine.

@traversaro traversaro changed the title Add macOS jobs to GitHub Actions Add macOS and Ninja jobs to GitHub Actions Nov 6, 2019
@traversaro
Copy link
Member Author

Rebased on the top of master to also test stable and unstable branches.

@traversaro
Copy link
Member Author

Besides some bindings problem that are tracked in #290 and #291 , the PR is working fine, so let's merge it.

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.

3 participants