Looks like 2 separate sections didn't trigger os x build. Try single section and detecting OS. Break up shell commands into separate scripts for brevity.