Skip to content

Docker Container for arduino-cli with AVR environment

License

Notifications You must be signed in to change notification settings

ElectroStar/arduino-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

arduino-cli

Docker Image for arduino-cli

Supported tags and respective Dockerfile links

Quick reference

How to use this Image

To use this Image with Gitlab-CI use the following commands in a .gitlab-ci.yml - File:

stages:
  - build

build_project:
  stage: build
  image: electrostar/arduino-cli:latest
  script:
    - arduino-cli compile -b arduino:avr:nano:cpu=atmega328old Blink.ino -o Blink.hex
  artifacts:
    paths:
    - Blink.hex
    expire_in: 3 hrs
  only:
    - master

Just replace the qualified board name (-b arduino:...) for your specific target and change the names for input project and the output file.

Installed Packages

  • AVR

To use additional Packages like megaavr, sam or samd you have to install these packages first. To do that just add before_script and use the update-index and install commands like in the following lines:

build_project:
  before_script:
    - arduino-cli core update-index
    - arduino-cli core install arduino:megaavr

License

The Dockerfiles and associated scripts are licensed under the MIT License.

About

Docker Container for arduino-cli with AVR environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published