File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build
2+ on : [pull_request, push]
3+ jobs :
4+ build :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - name : Checkout
8+ uses : actions/checkout@v2
9+
10+ - name : Build on Arduino CLI
11+ run : bash ci/build-arduino.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Exit immediately if a command exits with a non-zero status.
3+ set -e
4+ # Enable the globstar shell option
5+ shopt -s globstar
6+ # Make sure we are inside the github workspace
7+ cd $GITHUB_WORKSPACE
8+ # Create directories
9+ mkdir $HOME /Arduino
10+ mkdir $HOME /Arduino/libraries
11+ # Install Arduino IDE
12+ export PATH=$PATH :$GITHUB_WORKSPACE /bin
13+ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
14+ arduino-cli config init
15+ arduino-cli core update-index
16+
17+ # Install Arduino AVR core
18+ arduino-cli core install arduino:avr
19+
20+ # Link Arduino library
21+ ln -s $GITHUB_WORKSPACE $HOME /Arduino/libraries/CI_Test_Library
22+
23+ # Compile all *.ino files for the Arduino Uno
24+ for f in AVR_* /* .ino ; do
25+ arduino-cli compile -b arduino:avr:uno $f
26+ done
You can’t perform that action at this time.
0 commit comments