Skip to content

Commit 4fbc7f7

Browse files
committed
adds platform.local.txt only to CI, by using script
1 parent 22cb8c7 commit 4fbc7f7

File tree

4 files changed

+50
-39
lines changed

4 files changed

+50
-39
lines changed

.github/scripts/install-arduino-core-esp32.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ if [ ! -d "$ARDUINO_ESP32_PATH" ]; then
2121
else
2222
echo "Cloning Core Repository..."
2323
git clone https://github.com/espressif/arduino-esp32.git esp32 > /dev/null 2>&1
24+
echo "Copying CI restrictive warning settings from tools/platform.local.txt"
25+
cp tools/platform.local.txt .
2426
fi
2527

2628
#echo "Updating Submodules ..."

.github/workflows/push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
./tools/dist
4343
~/arduino_ide
4444
key: ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json',
45+
'platform.txt',
4546
'tools/get.py',
4647
'.github/scripts/install-arduino-ide.sh') }}
4748
- name: Build Sketches

platform.local.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.

tools/platform.local.txt

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Arduino Compile Warning Levels for the CI -- adding -Werror=all
2+
compiler.warning_flags.more=-Wall -Werror=all
3+
compiler.warning_flags.all=-Wall -Werror=all -Wextra
4+
5+
# Arduino Compiler Warning for CI -- forcing more strict Check
6+
# ANY WARNING will result in Compilation ERROR
7+
8+
#
9+
# Common Warning ignoring flags
10+
#
11+
#compiler.all.w_flags=-Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -Wno-error=unused-but-set-variable
12+
compiler.all.w_flags=
13+
14+
#
15+
# ESP32 Support Start
16+
#
17+
#compiler.c.w_flags.esp32={compiler.all.w_flags} -Wno-frame-address -Wno-old-style-declaration
18+
#compiler.cpp.w_flags.esp32={compiler.all.w_flags} -Wno-frame-address
19+
compiler.c.w_flags.esp32={compiler.all.w_flags}
20+
compiler.cpp.w_flags.esp32={compiler.all.w_flags}
21+
compiler.S.w_flags.esp32={compiler.all.w_flags}
22+
23+
#
24+
# ESP32S3 Support Start
25+
#
26+
#compiler.c.w_flags.esp32s3={compiler.all.w_flags} -Wno-old-style-declaration
27+
compiler.c.w_flags.esp32s3={compiler.all.w_flags}
28+
compiler.cpp.w_flags.esp32s3={compiler.all.w_flags}
29+
compiler.S.w_flags.esp32s3={compiler.all.w_flags}
30+
31+
#
32+
# ESP32S2 Support Start
33+
#
34+
#compiler.c.w_flags.esp32s2={compiler.all.w_flags} -Wno-old-style-declaration
35+
compiler.c.w_flags.esp32s2={compiler.all.w_flags}
36+
compiler.cpp.w_flags.esp32s2={compiler.all.w_flags}
37+
compiler.S.w_flags.esp32s2={compiler.all.w_flags}
38+
39+
#
40+
# ESP32C3 Support Start
41+
#
42+
#compiler.c.w_flags.esp32c3={compiler.all.w_flags} -Wno-format -Wno-error=format= -Wno-old-style-declaration
43+
#compiler.cpp.w_flags.esp32c3={compiler.all.w_flags} -Wno-error=format= -Wno-format
44+
#compiler.S.w_flags.esp32c3={compiler.all.w_flags} -Wno-error=format= -Wno-format
45+
compiler.c.w_flags.esp32c3={compiler.all.w_flags}
46+
compiler.cpp.w_flags.esp32c3={compiler.all.w_flags}
47+
compiler.S.w_flags.esp32c3={compiler.all.w_flags}

0 commit comments

Comments
 (0)