https://github.com/arduino/arduino-app-cli/blob/main/internal/orchestrator/models.go#L295
After retrieving the list of download we are currently taking the last deployments returned from the list.
The list is not filtered by target device, this means that if the last deployment wasn't an arduino target, we are going to build it again. Even if there is one available in the list but that's not the last.
Cycling over the list of deployment could be inefficient, api are going to be updated, so we can implement a fileter on client side for deployment target