@@ -3,29 +3,12 @@ name: CI
33on :
44 push :
55 branches : [ main, master ]
6- tags : ['v*']
76 pull_request :
87 workflow_dispatch :
98
109jobs :
11- unit-tests :
12- runs-on : ubuntu-latest
13- steps :
14- - name : Checkout
15- uses : actions/checkout@v4
16-
17- - name : Configure CMake
18- run : cmake -S . -B build
19-
20- - name : Build tests
21- run : cmake --build build
22-
23- - name : Run tests
24- run : ctest --test-dir build --output-on-failure
25-
2610 build-examples :
2711 runs-on : ubuntu-latest
28- needs : unit-tests
2912 strategy :
3013 fail-fast : false
3114 matrix :
@@ -56,20 +39,20 @@ jobs:
5639 for d in examples/*; do
5740 if [ -d "$d" ]; then
5841 echo "Building $d on ${{ matrix.board }} via PlatformIO CI"
42+ # Force C++17 for this project to satisfy library requirements
5943 pio ci "$d" \
6044 --board ${{ matrix.board }} \
6145 --lib="." \
6246 --project-option "build_unflags=-std=gnu++11" \
63- --project-option "build_flags=-std=gnu++17"
47+ --project-option "build_flags=-std=gnu++17" \
48+ --project-option "lib_deps=ArduinoJson@>=7.0.0"
6449 fi
6550 done
6651
6752 arduino-cli :
6853 runs-on : ubuntu-latest
69- needs : unit-tests
7054 env :
71- ESP32_CORE_VERSION : 3.0.7
72- ESP32_CORE_URL : https://espressif.github.io/arduino-esp32/package_esp32_index.json
55+ ESP32_CORE_VERSION : 3.3.3
7356 ARDUINO_BOARDS : |
7457 esp32:esp32:esp32 esp32dev
7558 esp32:esp32:esp32s3 esp32-s3-devkitc-1
@@ -99,13 +82,13 @@ jobs:
9982
10083 - name : Install ESP32 core
10184 run : |
102- set -e
103- arduino-cli core update-index --additional-urls "${ESP32_CORE_URL}"
104- # Retry once to dodge transient network drops/timeouts on large downloads
105- if ! arduino-cli core install --additional-urls "${ESP32_CORE_URL}" "esp32:esp32@${ESP32_CORE_VERSION}"; then
106- echo "Retrying ESP32 core install after transient failure..."
107- arduino-cli core install --additional-urls "${ESP32_CORE_URL}" "esp32:esp32@${ESP32_CORE_VERSION}"
108- fi
85+ arduino-cli core update-index
86+ arduino-cli core install esp32:esp32@${ESP32_CORE_VERSION}
87+
88+ - name : Install libraries
89+ run : |
90+ arduino-cli lib update-index
91+ arduino-cli lib install "ArduinoJson"
10992
11093 - name : Add local library to sketchbook
11194 run : |
0 commit comments