I was able to sync messages to iCloud in MacOS 10.13.5 beta (17F70a), though since I have no other devices running MacOS 10.13.5 beta or iOS 11.4 I'm unable to verify the sync was successful.
Sync must be enabled by checking Messages > Preferences > Accounts > Enable Messages in iCloud, as detailed in
this article.