Comments (2)
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
There is an example of a configuration that uses arduino-cli compile
's --export-binaries
flag here: #18 (comment)
from compile-sketches.
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:
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
.
from compile-sketches.
Related Issues (20)
- Ability to exclude specific examples in a matrix build HOT 3
- Ability to prep build environment without building HOT 3
- Library not included, when `source-path:` points to private repo HOT 3
- Library version is not working HOT 1
- Automatically load libraries from `depends` field in `library.propreties` HOT 2
- Incorrect and insufficient documentation of `cli-compile-args` input data format HOT 2
- cli-compile-flags HOT 1
- compile-sketches reporting 403 when trying to download arduino-cli HOT 5
- Allow FQBN to be defined in build profile alone
- Cannot build a sketch for esp8266 HOT 2
- Support for latest Mac and Windows OS
- Compile ESP8266 Platform examples => esp8266 installation fails HOT 2
- Sketches with `#include Math.h` do not compile via GH Action (but do locally) HOT 1
- compilesketches.py error before compile that related to recent update HOT 2
- could a runner's cache be supported? HOT 4
- Improve documentation of data format of dependency inputs HOT 1
- Spaces in FQBN are not supported HOT 3
- compile-sketches uses gnu++11... HOT 3
- Deprecation warning HOT 1
- Rate limiting failures have started appearing frequently in the past few weeks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compile-sketches.