diff --git a/.github/scripts/sketch_utils.sh b/.github/scripts/sketch_utils.sh index 3a856202e51..55a1d5d8c2b 100755 --- a/.github/scripts/sketch_utils.sh +++ b/.github/scripts/sketch_utils.sh @@ -136,7 +136,7 @@ function build_sketch(){ # build_sketch [ex currfqbn=`echo $fqbn | jq -r --argjson i $i '.[$i]'` sketchname=$(basename $sketchdir) echo "Building $sketchname with FQBN=$currfqbn" - $ide_path/arduino-builder -compile -logger=human -core-api-version=10810 \ + $ide_path/arduino-builder -prefs="compiler.warning_flags.all=-Wall -Werror=all -Wextra" -compile -logger=human -core-api-version=10810 \ -fqbn=\"$currfqbn\" \ -warnings="all" \ -tools "$ide_path/tools-builder" \ diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index f2f75d7b1ac..73262be0129 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -42,6 +42,7 @@ jobs: ./tools/dist ~/arduino_ide key: ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json', + 'platform.txt', 'tools/get.py', '.github/scripts/install-arduino-ide.sh') }} - name: Build Sketches diff --git a/platform.txt b/platform.txt index 3cb29298791..8404c4fa766 100644 --- a/platform.txt +++ b/platform.txt @@ -106,8 +106,8 @@ compiler.size.cmd={compiler.prefix}size compiler.warning_flags=-w compiler.warning_flags.none=-w compiler.warning_flags.default= -compiler.warning_flags.more=-Wall -Werror=all -compiler.warning_flags.all=-Wall -Werror=all -Wextra +compiler.warning_flags.more=-Wall +compiler.warning_flags.all=-Wall -Wextra # These can be overridden in platform.local.txt compiler.c.extra_flags=