Browse Source

CI: added a workaround for adafruit/Adafruit_nRF52_Arduino#653

Benoit Blanchon 4 years ago
parent
commit
669bad27d4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .github/workflows/ci.yml

+ 3 - 0
.github/workflows/ci.yml

@@ -243,6 +243,9 @@ jobs:
       - name: Install adafruit-nrfutil
         if: ${{ matrix.platform == 'nordicnrf52' }}
         run: pip install adafruit-nrfutil
+      - name: Include Adafruit_TinyUSB.h # https://github.com/adafruit/Adafruit_nRF52_Arduino/issues/653
+        if: ${{ matrix.platform == 'nordicnrf52' }}
+        run: find examples/ -name '*.ino' -exec sed -i 's/\(#include <ArduinoJson.h>\)/\1\n#include <Adafruit_TinyUSB.h>/' {} +
       - name: Set up cache for platformio
         uses: actions/cache@v2
         with: