-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Add CI job which tries to build arduino-esp32 as a component #5842
Conversation
c13f707
to
844a579
Compare
ae053e7
to
09b2f35
Compare
09b2f35
to
1b41380
Compare
1b41380
to
b65b956
Compare
@@ -56,3 +56,30 @@ jobs: | |||
python-version: '3.x' | |||
- name: Build Sketches | |||
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO | |||
|
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.
This is a good test, but I am not sure if it is necessary to run with each push. In what cases/changes will this fail, but not fail in the sketch tests? Maybe we can limit it to changes on particular files? I also noticed in the logs that Arduino was not actually built. Probably issue with the extra components path.
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.
Maybe CMakeLists.txt and Kconfig.projbuild are a good option for filter?
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.
How about running this for master branch only?
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.
Sure, but still what would be the benefit compared to the lib-builder doing this every 6 hours? Make sure that Arduino will build without any other submodules and default config?
Summary
This PR is related to #5839.
This PR adds an IDF version check to arduino-esp32 component CMakeLists file. IDF version is checked against the range of supported versions. If the version is not supported, an error is reported.
This check can be bypassed by arduino-esp32 developers by setting an environment variable, see comments in the source code.
This PR also adds a CI job which tries to build arduino-esp32 as a component. The CI job currently runs on the latest release/v4.4 branch of IDF via the official Docker image. When new chips or supported versions are added, build matrix can be adjusted.
Impact