Skip to content

Commit 5d0f26c

Browse files
committed
Fixing arduino CI test #4
1 parent 944e71f commit 5d0f26c

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/arduino.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ jobs:
1616
# Add ESP32 core index and install the latest available esp32 core
1717
arduino-cli core update-index --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
1818
arduino-cli core install esp32:esp32
19+
- name: Install local library into Arduino CLI libraries
20+
run: |
21+
mkdir -p $HOME/.arduino15/libraries
22+
cp -R $GITHUB_WORKSPACE $HOME/.arduino15/libraries/HaierProtocol
1923
- name: Compile Arduino example
2024
working-directory: test/ci/arduino_example
2125
run: |
22-
arduino-cli compile --fqbn esp32:esp32:esp32 . --libraries ../../..
26+
arduino-cli compile --fqbn esp32:esp32:esp32 .

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ This library is compatible with both **PlatformIO** and **Arduino** toolchains.
1212

1313
- Existing include paths stay unchanged (for example ``"protocol/haier_protocol.h"``).
1414
- Public headers are located in the ``src`` tree (the ``include`` tree is no longer used).
15+
- For Arduino IDE/CLI, you can also include the main header:
16+
17+
Note on C++ standard library support
18+
----------------------------------
19+
20+
This library uses C++ timing facilities (``std::chrono``). It requires a
21+
toolchain and board core that provide the C++ standard library. Older or
22+
constrained Arduino cores (for example some AVR/Uno toolchains) may not
23+
provide ``<chrono>`` and will fail to compile. For these boards prefer
24+
PlatformIO or newer Arduino cores that include full C++ support.
25+
26+
If you target constrained boards, see the Arduino usage documentation for
27+
workarounds and recommended cores.
28+
1529
- For Arduino IDE/CLI, you can also include the main header:
1630

1731
.. code-block:: cpp

0 commit comments

Comments
 (0)