-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab39fd2
commit d73660d
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
# Enable the globstar shell option | ||
shopt -s globstar | ||
|
||
# Make sure we are inside the github workspace | ||
cd $GITHUB_WORKSPACE | ||
|
||
# Create directories | ||
mkdir $HOME/Arduino | ||
mkdir $HOME/Arduino/libraries | ||
|
||
# Install Arduino IDE | ||
export PATH=$PATH:$GITHUB_WORKSPACE/bin | ||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh | ||
arduino-cli config init | ||
arduino-cli core update-index | ||
|
||
# Install Arduino AVR core | ||
arduino-cli core install arduino:avr | ||
|
||
# Compile all *.ino files for the Arduino Uno | ||
for f in **/*.ino ; do | ||
arduino-cli compile -b arduino:avr:leonardo $f | ||
done |