Code Monkey home page Code Monkey logo

azuredevops-arduino-cli-task's People

Contributors

dependabot[bot] avatar duglah avatar

Watchers

 avatar  avatar

azuredevops-arduino-cli-task's Issues

cannot start task from azure pipeline

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

arduino-cli lib install git-url

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.