add build matrix computation