build the sample within the main build