Implement Directed Acyclic Graph for CI pipeline
See https://docs.gitlab.com/ee/ci/directed_acyclic_graph/
to speed up CI pipeline execution.
RATIONALE: Current CI is already very inefficient, it can take sometimes 40 minutes to complete, see for example: https://git.jinr.ru/nica/mpdroot/-/pipelines/15186
This will be very important especially for coming up implementation of testing.
Edited by Slavomir Hnatic