-
Notifications
You must be signed in to change notification settings - Fork 2k
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
tests/pkg/emlearn: add model.h to repo #20841
Conversation
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.
Sounds good to me to have model.h
checked in and updated in lockstep with the binary model
for new versions of emlearn
as this relieves the CI from having to contain emlearn
.
CI complains about trailing whitespaces and non-C++ compatible header. Either we would have to add some sed
magic to resolve those on model.h
(likely should be part of the Make target) or we exclude that specific header from the static checks, if that is somehow possible.
After rebasing to master, this should be ready to be merged @maribu. |
The Makefile rule to regenerate model.h has been left in place, but just adding the header to the test allows to build the application without heaving emlearn installed, which is convenient for the CI. Actual users of emlearn will like still want to generate the header.
7552343
to
2c89b7a
Compare
Thanks for the reminder. Done :) |
Contribution description
This adds the previously on-demand generated
model.h
to the repo. The Makefile rule to regenerate model.h has been left in place, but just adding the header to the test allows to build the application without heaving emlearn installed, which is convenient for the CI.Actual users of emlearn will likely still want to generate the header.
Testing procedure
make -C tests/pkg/emlearn
should now work despiteemlearn
not installed.Issues/PRs references
This should fix the issue from #20840