SmartRC-CC1101-Driver-Lib icon indicating copy to clipboard operation
SmartRC-CC1101-Driver-Lib copied to clipboard

Add Github Action Compile Tests

Open latchdevel opened this issue 3 years ago • 0 comments

Hi!.

I add a Github Action to compiles the library with all its examples, which I think is useful, so I would like to share them with other users.

The Github Action compiles all examples in different platforms like Arduino Nano, Arduino Mega2560, ESP8266 Wemos D1 and ESP32 NodeMCU-32S, to at least, be sure that compilation is successful. https://github.com/latchdevel/SmartRC-CC1101-Driver-Lib/actions/workflows/CompileTests.yml

It is necessary to take into consideration several points:

  • ESPiLight library is only functional for ESP8266 and ESP32 platforms, not work on common Arduinos AVR.
  • ESPiLight library (current v0.17.0) is not compatible with ESP8266 v3.x.x environment, so v2.7.4 is forced to be used.
  • RC-Switch library uses ReceivedInverted() and getReceivedLevelInFirstTiming() functions, that are not available in the main library distribution, being necessary to use "protocollessreceiver" branch from repository https://github.com/Martin-Laclaustra
  • NewRemoteSwitch library must be up to date, at least on commit c3ca4cb (Sep 19, 2021), to work properly.

Hope I can help other users with my little contribution. Regards!

latchdevel avatar Sep 25 '21 19:09 latchdevel