CI: optimize example build and artifact download (backport v4.0) See merge request espressif/esp-idf!6940