Skip to content
Snippets Groups Projects
Select Git revision
  • 266a655c000fe2cc5dd1cd22c0fa3f167c70a9d9
  • v2.0 default
  • ci-pipeline
  • v1.0
4 results

setup-build-env.sh

Blame
  • setup-build-env.sh 1.19 KiB
    #!/bin/bash
    
    apt-get update
    cd ~
     
    # Install arduino-cli
    apt-get install curl -y
    apt-get install bzip2
    curl -L -o arduino-cli.tar.bz2 hhttps://github.com/arduino/arduino-cli/releases/download/0.22.0/arduino-cli_0.22.0_Linux_64bit.tar.gz
    tar xjf arduino-cli.tar.bz2
    rm arduino-cli.tar.bz2
    mv `ls -1` /usr/bin/arduino-cli
     
    # Install python, pip and pyserial
    # apt-get install python -y
    # curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    # python get-pip.py
    # pip install pyserial
     
    # Install 'native' packages
    arduino-cli config init
    arduino-cli core update-index
    arduino-cli core install arduino:avr
    
    # Install official arduino libraries
    arduino-cli lib install AUnit
    
    
    mkdir /root/Arduino
    mkdir /root/Arduino/libraries
    
    cd -
    
     
    # Install 'third-party' packages: find proper location and 'git clone'
    # apt-get install git -y
    # cd `arduino-cli config dump | grep sketchbook | sed 's/.*\ //'`/libraries
    # cp -r builds/bits/bits2-3/packages/dcm
    # git clone https://github.com/me-no-dev/AsyncTCP.git
    # git clone https://github.com/me-no-dev/ESPAsyncWebServer.git
    # git clone https://github.com/ThingPulse/esp8266-oled-ssd1306.git
    # git clone https://github.com/RoboticsBrno/ESP32-Arduino-Servo-Library.git
    cd -