We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, is it possible to get the compiled HEX from the sketch?
The text was updated successfully, but these errors were encountered:
Hi @TomasHubelbauer. Yes, you can do this.
The action's cli-compile-flags input allows you to pass arbitrary flags that will be used in the arduino-cli compile command that compiles the sketches. You can learn about all the available flags here: https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_compile/#options
cli-compile-flags
arduino-cli compile
There is an example of a configuration that uses arduino-cli compile's --export-binaries flag here: #18 (comment)
--export-binaries
Sorry, something went wrong.
I tried this:
- name: Compile the sketch uses: arduino/compile-sketches@v1 # https://github.com/arduino/compile-sketches with: sketch-paths: | - . cli-compile-flags: | - --output-dir="$PWD"
But it did not work. I am not sure if I need to use --build-path maybe or instead of $PWD use ., in any case, I found this worked:
--build-path
$PWD
.
cp /tmp/arduino-sketch-*/sketch-name.ino.hex sketch-name.hex
I added it to a script step and it works well enough for now until I figure out cli-compile-flags.
per1234
No branches or pull requests
Hello, is it possible to get the compiled HEX from the sketch?
The text was updated successfully, but these errors were encountered: