Copying files to build root with pio ci?

Is there any way to copy files to the build root directory when running pio ci? I would like to test an “Arduino as ESP-IDF component” build in CI, but that requires having sdkconfig.defaults in the build root dir, and I haven’t figured out a way to copy that in place. -l copies it to a random library directory and providing it as a src parameter copies it under src/.

The temporary build directory can be specified with the --build-dir parameter.

You can therefore create the build directory in advance and copy your required sdkconfig.defaults into it.

Thank you - that makes sense.