Gitlab CI: How to change dynamically building directory

Hi there!
Have a question:
Is it possible to change working/building directory dynamically in order not to change gitlab config config.toml??? I meant change build directory while pipeline execution…
Please suggest the way…

Thanks in advance