|
20 | 20 |
|
21 | 21 | jobs: |
22 | 22 | arduino: |
23 | | - name: arduino ${{ matrix.platform }} |
| 23 | + name: arduino ${{ matrix.name }} |
24 | 24 | runs-on: ubuntu-latest |
25 | 25 | strategy: |
26 | 26 | fail-fast: false |
27 | 27 | matrix: |
28 | | - platform: [esp8266, esp32] |
| 28 | + include: |
| 29 | + - name: package_esp32_index.json |
| 30 | + core: esp32:esp32 |
| 31 | + board: esp32:esp32:esp32 |
| 32 | + index_url: https://espressif.github.io/arduino-esp32/package_esp32_index.json |
| 33 | + - name: package_esp32_dev_index.json |
| 34 | + core: esp32:esp32 |
| 35 | + board: esp32:esp32:esp32 |
| 36 | + index_url: https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json |
| 37 | + - name: package_esp8266com_index.json |
| 38 | + core: esp8266:esp8266 |
| 39 | + board: esp8266:esp8266:huzzah |
| 40 | + index_url: https://arduino.esp8266.com/stable/package_esp8266com_index.json |
29 | 41 |
|
30 | 42 | steps: |
31 | | - - uses: actions/setup-python@v1 |
32 | | - with: |
33 | | - python-version: "3.x" |
34 | | - |
35 | | - - uses: actions/checkout@v2 |
| 43 | + - name: Checkout |
| 44 | + uses: actions/checkout@v4 |
36 | 45 |
|
37 | | - - uses: actions/checkout@v2 |
| 46 | + - name: Arduino Lint |
| 47 | + uses: arduino/arduino-lint-action@v1 |
38 | 48 | with: |
39 | | - repository: ayushsharma82/ci-arduino |
40 | | - path: ci |
| 49 | + library-manager: update |
41 | 50 |
|
42 | | - - name: pre-install |
43 | | - run: bash ci/actions_install.sh |
| 51 | + - name: Install arduino-cli |
| 52 | + run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh |
44 | 53 |
|
45 | | - - name: Set configuration |
46 | | - run: arduino-cli config set library.enable_unsafe_install true |
| 54 | + - name: Update core index |
| 55 | + run: arduino-cli core update-index --additional-urls "${{ matrix.index_url }}" |
47 | 56 |
|
48 | | - - name: Install AsyncTCP |
49 | | - run: arduino-cli lib install --git-url https://github.com/mathieucarbou/AsyncTCP#v3.1.2 |
| 57 | + - name: Install core |
| 58 | + run: arduino-cli core install --additional-urls "${{ matrix.index_url }}" ${{ matrix.core }} |
50 | 59 |
|
51 | | - - name: Install ESPAsyncWebServer |
52 | | - run: arduino-cli lib install --git-url https://github.com/mathieucarbou/ESPAsyncWebServer#v2.10.0 |
| 60 | + - name: Install AsyncTCP |
| 61 | + run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/AsyncTCP#v3.1.4 |
53 | 62 |
|
54 | 63 | - name: Install ESPAsyncTCP |
55 | | - run: arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0 |
| 64 | + run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0 |
| 65 | + |
| 66 | + - name: Install ESPAsyncWebServer |
| 67 | + run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/ESPAsyncWebServer#v2.10.1 |
56 | 68 |
|
57 | 69 | - name: Install ArduinoJson |
58 | | - run: arduino-cli lib install --git-url https://github.com/bblanchon/ArduinoJson#v7.0.4 |
| 70 | + run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/bblanchon/ArduinoJson#v7.0.4 |
| 71 | + |
| 72 | + - name: Build AccessPoint |
| 73 | + run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/AccessPoint/AccessPoint.ino" |
| 74 | + |
| 75 | + - name: Build Basic |
| 76 | + run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Basic/Basic.ino" |
| 77 | + |
| 78 | + - name: Build Benchmark |
| 79 | + run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Benchmark/Benchmark.ino" |
| 80 | + |
| 81 | + - name: Build Chart |
| 82 | + run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Chart/Chart.ino" |
| 83 | + |
| 84 | + - name: Build Dynamic |
| 85 | + run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Dynamic/Dynamic.ino" |
59 | 86 |
|
60 | | - - name: Build Examples |
61 | | - run: python3 ci/build_platform.py ${{ matrix.platform }} |
| 87 | + - name: Build Interactive |
| 88 | + run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Interactive/Interactive.ino" |
62 | 89 |
|
63 | 90 | platformio: |
64 | 91 | name: pio ${{ matrix.name }} |
|
0 commit comments