Weyl semimetal phases and implementation in degenerate optical cavities