duglah / azuredevops-arduino-cli-task Goto Github PK
View Code? Open in Web Editor NEWarduino-cli task for Azure DevOps https://marketplace.visualstudio.com/items?itemName=PhilippManstein.arduino-cli
License: MIT License
arduino-cli task for Azure DevOps https://marketplace.visualstudio.com/items?itemName=PhilippManstein.arduino-cli
License: MIT License
Hi
I've installed the 'arduino-cli' from marketplace in azure pipelines, and added the azure-pipelines.yml in my repostory (liike the example at your github).
I keep get the error "A task is missing. The pipeline references a task called 'ArduinoCliInstall' with version '0'. This indicates that the specific task version can not be found. (job 'Job', step ''.)"
The error point to the following line in th eyml file: "- task: ArduinoCliInstall@0"
Best regards,
Mario
Great build tasks! There is issue with the current implementation with the lib install task, in that the command formed for library install using git is using
--git-url="...."
but should be
--git-url "..."
the equal sign breaks the command. Easy fix though in lib_install/lib_installV1/index.js
, line 41. The same is probably true for the zip option (line 50) even though I did not try that.
I am not sure whether this equal sign vs. space issue also screws up the other command line options. According to the docs, space should be used to separate args from key....
Related: library install (and zip install) will only work if unsafe installs are enabled. This has to be done prior to calling the action. There are really two ways to accomplish that, adding a arduino-cli.yaml file to the repo with the appropriate keys or creating the file on the build agent on the fly using bash and
$(RUNNER_TOOLSDIRECTORY)/arduino-cli/$(arduino-cli-version)/Linux_64bit/arduino-cli config init
$(RUNNER_TOOLSDIRECTORY)/arduino-cli/$(arduino-cli-version)/Linux_64bit/arduino-cli config set library.enable_unsafe_install true
$(RUNNER_TOOLSDIRECTORY)/arduino-cli/$(arduino-cli-version)/Linux_64bit/arduino-cli config set board_manager.additional_urls ....
... # other config keys
I do the latter, because I do not really want the config file in the repo, as for desk side development I use VSCode with full arduino. It be great to add an action for creating the config file and adding the key/value. There are only like a handful of keys or so :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.