[CI] Added library path to arduino-cli
This commit is contained in:
parent
e01458ba83
commit
c7c7455947
1 changed files with 1 additions and 2 deletions
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
@ -16,7 +16,6 @@ jobs:
|
||||||
mkdir -p ~/.local/bin
|
mkdir -p ~/.local/bin
|
||||||
echo "::add-path::~/.local/bin"
|
echo "::add-path::~/.local/bin"
|
||||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
|
||||||
export PATH=$PATH:$PWD/bin
|
|
||||||
|
|
||||||
- name: Install board
|
- name: Install board
|
||||||
run: |
|
run: |
|
||||||
|
@ -37,7 +36,7 @@ jobs:
|
||||||
else
|
else
|
||||||
# build sketch
|
# build sketch
|
||||||
echo -e "\n\033[1;33mBuilding ${example##*/} ... \033[0m";
|
echo -e "\n\033[1;33mBuilding ${example##*/} ... \033[0m";
|
||||||
arduino-cli compile --fqbn $BOARD $example --warnings=$WARNINGS
|
arduino-cli compile --libraries $PWD/src/RadioLib.h --fqbn $BOARD $example --warnings=$WARNINGS
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\033[1;31m${example##*/} build FAILED\033[0m\n";
|
echo -e "\033[1;31m${example##*/} build FAILED\033[0m\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue