-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Removes -Werror=all from cflags #7060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
ee8839d
9e51e99
57db582
8df4963
1688753
22cb8c7
4fbc7f7
7de323a
1cabb07
1b5c4d9
bda1bc1
0623d38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,9 @@ else | |
git clone --recursive https://github.com/espressif/arduino-esp32.git "$PLATFORMIO_ESP32_PATH" > /dev/null 2>&1 | ||
fi | ||
|
||
echo "Copying CI restrictive warning settings from tools/platform.local.txt" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PIO does not use any Arduino configuration file. |
||
cd "$PLATFORMIO_ESP32_PATH" && cp tools/platform.local.txt . | ||
|
||
echo "PlatformIO for ESP32 has been installed" | ||
echo "" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,9 @@ jobs: | |
./tools/dist | ||
~/arduino_ide | ||
key: ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json', | ||
'platform.txt', | ||
'tools/get.py', | ||
'tools/platform.local.txt', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this one required? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this file changes, it means that cflags (any) have changed in CI building processs... really not sure if this is necessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The cache includes the toolchains and the Arduino IDE. The toolchains are unrelated to this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe that we will change it for finishing this PR and we will not change it for a long while after that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
'.github/scripts/install-arduino-ide.sh') }} | ||
- name: Build Sketches | ||
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't this inside the
if else
statement above? It didn't work?It should be added after line 20 (inside the
if
).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it didn't work in side the
if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to move it outside in order to really copy the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was inside the
else
not theif
where it should be. Also there is acd
missing (or the path needs to be updated accordingly by just adding esp32/)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You didn't force push, so we it's still here: 1cabb07
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks for clarifying.
The absolute most of Arduino Users will never use
tests_build.sh
.Therefore, I'd say that if it happens, the user that does use it, is an expert one, and that person will know what to do.
I still see no problem with the script copying the file to the Docker file system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's take one step back please for me to understand the issue. What's the problem with the below diff? It doesn't work?
The issues, as I see them, are:
As for who uses
tests_build.sh
I hope anyone writing drivers for Arduino would. That means tests are written and validated locally.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It didn't work when it is executed by Github Action started by "On Push".
I see that when it uses GitHub-hosted runners with Ubuntu Image, which is created fresh by the runner and it has nothing installed. It always Clone
https://github.com/espressif/arduino-esp32.git
This is just a Shell Script executed by a Runner that will use some VM with empty Ubuntu/Mac/Windows files system.
Then the script clones Arduino-IDE, ESP32 Arduino Core into it in order to excute the Tasks.
Right after cloning or linking (which I think never happens with Github Actions), it will copy
platform.local.txt
fromesp32/tools
toesp32
.Looking into
install-arduino-core-esp32.sh
I can see other places that use Common Path - I just used it in the right place.Please clarify when does it happen. It copies files to the VM File System that only exists in the CI and Github Action Runner Time. Everything is destroyed after the end of VM execution. Nothing goes to the User File System, unless the script is executes directly in a Shell Command Line - which I understand is not the purpose of this script.
Anyway, it works with Ubuntu/Mac/Windows and Arduino-Builder. It doesn't work with PlatformIO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that any regular user will run this script to install Arduino tools or its github... This would be the only possible problem with running it as you seem to describe.
I think that this script will only be executed by Github Actions... never by the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this ever tried?
You can check every on-push workflow, since the creation of this workflow, and you can see that it actually links the repo and does not clone it. Cloning in Github Action is done with the Checkout Action.
