Make use of gitlab untracked: true artifact tracker to keep the built objects and binaries between stages.
untracked: true