Skip to content

Commit

Permalink
use arduino lib as escape string
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Jun 10, 2024
1 parent 6d6cd17 commit 75fd754
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/githubci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@ concurrency:
cancel-in-progress: true

env:
ARDUINO_LIBS:
- 'Adafruit SPIFlash'
- 'MIDI Library'
- 'Adafruit seesaw Library'
- 'Adafruit NeoPixel'
- 'SdFat - Adafruit Fork'
- 'SD'
- 'Adafruit Circuit Playground'
- 'Adafruit InternalFlash'
- 'Pico PIO USB'
ARDUINO_LIBS: "\"Adafruit SPIFlash\" \"MIDI Library\" \"Adafruit seesaw Library\" \"Adafruit NeoPixel\" \"SdFat - Adafruit Fork\" \"SD\" \"Adafruit Circuit Playground\" \"Adafruit InternalFlash\" \"Pico PIO USB\""

jobs:
pre-commit:
Expand Down Expand Up @@ -86,13 +77,9 @@ jobs:

- name: Install Libraries
run: |
LIBS_STRING=""
for lib in "${{ env.ARDUINO_LIBS[@] }}"; do
LIBS_STRING+="\"$lib\" "
done
echo "$LIBS_STRING"
echo ${{ env.ARDUINO_LIBS }}
# arduino-cli lib install "Adafruit SPIFlash" "MIDI Library" "Adafruit seesaw Library" "Adafruit NeoPixel" "SdFat - Adafruit Fork" "SD" "Adafruit Circuit Playground" "Adafruit InternalFlash" "Pico PIO USB"
arduino-cli lib install $LIBS_STRING
arduino-cli lib install ${{ env.ARDUINO_LIBS }}
- name: test platforms
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
Expand Down

0 comments on commit 75fd754

Please sign in to comment.