-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Feature request: exclude files from Arduino CLI #631
Comments
Hi @janjongboom! If so, maybe is this something that can be achieved with a clever Makefile that copies the relevant files/folders for the selected target to a temporary build directory and then launches arduino-cli? |
@alranel Correct, and yes, that's one way of doing it, e.g. this is how we're doing it right now: But that always requires a second step, e.g. we need to do this every time someone wants to include our library as an Arduino lib. |
What about setting up a CI action on your repo, that performs that cleanup and pushes the Arduino library to its own repo? That way users will have it ready like a normal Arduino library, always up-to-date with your upstream repo. Also you could include a library.properties file in there so that it can be indexed in the Arduino Library Manager. |
Hi @janjongboom. I'd be glad to assist with implementing alranel's proposal of using CI to generate the Arduino library from your unified code. My idea is that on every change (push or PR) to the edgeimpulse/inferencing-sdk-cpp repository's relevant files, the CI system should:
|
@per1234 Thanks, we already have this in our internal CI (and automatically test building a bunch of impulses for the Nano 33 BLE Sense), but it's still annoying that the Arduino CLI cannot do this yet. |
I'm glad to hear you have been able to automate this @janjongboom. We will investigate whether the exclude functionality can be provided within a broader context as part of the ongoing development of Arduino CLI. |
+1 |
In case anyone is interested in this, I'm sure the Arduino team would be open to review any contribution that implements it :) |
I was contemplating whether this would be a request for the library format or something in Arduino CLI. We have a unified codebase for our embedded libraries, and deliver a configuration file per target that includes / excludes certain folders. E.g. we can deliver a Makefile, a Keil uVision project, or an
.mbedignore
file as part of the delivery mechanism. This works really well. However, for Arduino there does not seem to be a similar way to exclude files from the build process. I know others struggle with this too (e.g. @neil-tan when developing uTensor).Adding this in the library format and in Arduino CLI would make it a lot easier to distribute upstream versions of libraries that we publish, rather than having to create separate builds just for Arduino.
The text was updated successfully, but these errors were encountered: