-
-
Notifications
You must be signed in to change notification settings - Fork 16
cli-compile-flags not working #368
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
Comments
The code responsible for the compile code, can be found at row 912. From row 922 to 925 the compilation flags are created.
Another improvement could be that the actual call is printed to the output, so it can be checked. This type of output is given by the previous steps, but not during this step. Below it is seen that all the steps before the "Compiling sketch" step outputs the command that is executed by "Running command:". The step "Compiling sketch" is also running the command "arduino-cli compile ...", but this is not printed.
|
Hi @macsnoeren. Because the input supports specifying multiple arguments, the value of the Let's start by looking at the input value by itself. Your current value is: -e The data type of this YAML document is a string. This is how to convert it to a sequence type: - -e Now that we understand how to correctly format the input value, we need to apply this change to the workflow. If GitHub Actions supported sequence type action input values, we could do something like this: cli-compile-flags:
- -e However, GitHub Actions only supports the string type for action input values. So we use a string that is in turn a YAML document (the action takes care of parsing it as such). Making the most minimal change to your existing code, this would look like: cli-compile-flags: "- -e" However, I think a more readable form is this: cli-compile-flags: |
- -e This uses the "literal block scalar style" (note the
I think it is an excellent suggestion. Please open a dedicated feature request so that the task can be tracked effectively. |
Describe the problem
I try to enable that the build files are exported to the sketch directory. Unfortunatuly, I could not debug the problem at this moment.
To reproduce
The action file:
This gives the result at the compilation step that the arduino-cli is not correctly called:
Expected behavior
That the compilation is done correctly, which is when I remove the 'cli-compile-flags', and that the binary files are found in the sketch directory.
'arduino/compile-sketches' version
latest
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: