add headless build into CI

this would be very helpful for nylas integration.