Are you on Arch? I’ve been struggling to build sway 1.0-beta.1 on Ubuntu 18.04 - need to build libwayland 1.16 but then all transitive deps on Wayland are sad.
I'm running Ubuntu 18.10 and basically only needed to install sway, wlroots and json-c from source. Additionally Ubuntu's system version of meson is too old, but you get the latest with pip.
sway beta works great on Arch, maybe you can look up build scripts for sway-git and wlroots-git on aur.archlinux.org, that should probably help with dependency list and building the whole thing.