diff --git a/.arduino-ci.yml b/.arduino-ci.yml index 1de4457fb..c54c2a9d8 100644 --- a/.arduino-ci.yml +++ b/.arduino-ci.yml @@ -1,25 +1,41 @@ +platforms: + mega2560: + board: arduino:avr:mega:cpu=atmega2560 + package: arduino:avr + gcc: + features: + defines: + - __AVR__ + - __AVR_ATmega2560__ + - ARDUINO_ARCH_AVR + - ARDUINO_AVR_MEGA2560 + warnings: + - no-unknown-attributes + - no-address-of-packed-member + flags: + unittest: - platforms: - - mega2560 - libraries: - - "Adafruit BusIO" - - "Adafruit MAX31865" - - "Arduino-PID-Library" - - "Ethernet" - - "LiquidCrystal" - - "RTClib" - - "Keypad" - - "SD" + platforms: + - mega2560 + libraries: + - "Adafruit BusIO" + - "Adafruit MAX31865" + - "Arduino-PID-Library" + - "Ethernet" + - "LiquidCrystal" + - "RTClib" + - "Keypad" + - "SD" compile: - platforms: - - mega2560 - libraries: - - "Adafruit BusIO" - - "Adafruit MAX31865" - - "Arduino-PID-Library" - - "Ethernet" - - "LiquidCrystal" - - "RTClib" - - "Keypad" - - "SD" + platforms: + - mega2560 + libraries: + - "Adafruit BusIO" + - "Adafruit MAX31865" + - "Arduino-PID-Library" + - "Ethernet" + - "LiquidCrystal" + - "RTClib" + - "Keypad" + - "SD" diff --git a/.github/actions/spelling/excludes.txt b/.github/actions/spelling/excludes.txt index f8dd1dc86..25db06c3b 100644 --- a/.github/actions/spelling/excludes.txt +++ b/.github/actions/spelling/excludes.txt @@ -12,5 +12,6 @@ LICENSE .all-contributorsrc .gitignore Makefile +.arduino-ci.yml ^other/* ^docs/Menus.xlsx$ diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index c07c8b92a..a12584f43 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -34,6 +34,7 @@ EZO FONTFAMILY FONTSTYLE FONTWEIGHT +gcc Gemfile github globals diff --git a/GUI/Makefile b/GUI/Makefile index 8653a2f74..5db7087d7 100644 --- a/GUI/Makefile +++ b/GUI/Makefile @@ -1,5 +1,6 @@ CC = g++ -std=c++17 -O3 -fPIC DEFINES = -D__AVR__ -D__AVR_ATmega2560__ -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DARDUINO=100 +WARNINGS = -Wno-unknown-attributes -Wno-address-of-packed-member LIBRARIES = $(shell bundle exec arduino_library_location.rb) PY_PATH = $(shell cd ../pybind11; python3 -m pybind11 --includes) SUFFIX = $(shell python3-config --extension-suffix) @@ -13,6 +14,7 @@ $(PY_LIB) : TankControllerLib.o ../pybind11/setup.py ../libTC.cpp echo "===== Compiling PY_LIB ($(PY_LIB)) =====" > /dev/null $(CC) -shared -fPIC \ $(DEFINES) \ + $(WARNINGS) \ -Wl,-undefined,dynamic_lookup \ $(PY_PATH) \ -I$(TC_PATH) \ @@ -37,6 +39,7 @@ TankControllerLib.o : Godmode.o echo "===== Compiling TankControllerLib =====" > /dev/null $(CC) -c \ $(DEFINES) \ + $(WARNINGS) \ -I$(TC_PATH) \ -I$(TC_PATH)/Devices \ -I$(TC_PATH)/UIState \