Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 6631e0a

Browse files
author
James Foster
authored
Rename example; create install script (#8)
Rename example and create install_libraries.sh script
1 parent 24d286d commit 6631e0a

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.arduino-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ platforms:
88
features:
99
defines:
1010
- __AVR_ATmega2560__
11-
# added this line
1211
- ARDUINO_CI
1312
warnings:
1413
flags:
@@ -23,4 +22,4 @@ compile:
2322
platforms:
2423
- mega2560
2524
libraries:
26-
- "LiquidCrystal"
25+
- "LiquidCrystal"

.github/workflows/Arduino-CI.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ jobs:
2020
- run: |
2121
bundle install
2222
23-
# Creates the Library directory and install our libraries
24-
- run: |
25-
bundle exec ensure_arduino_installation.rb
26-
git clone https://github.com/Arduino-CI/LiquidCrystal.git
27-
mv LiquidCrystal $(bundle exec arduino_library_location.rb)
23+
# Installing libraries needed for this project
24+
- name: Install libraries
25+
run: |
26+
./scripts/install_libraries.sh
2827
2928
# Finally, run the tests
3029
- run: |
File renamed without changes.

scripts/install_libraries.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# set up directories
4+
bundle exec ensure_arduino_installation.rb
5+
6+
# get custom version of LiquidCrystal
7+
git clone https://github.com/Arduino-CI/LiquidCrystal.git
8+
mv LiquidCrystal $(bundle exec arduino_library_location.rb)
9+

0 commit comments

Comments
 (0)