Fix build sequence of CI.