Also split out the build of libqrcodegen on macOS into a separate step, and
make the workflows for Ubuntu and macOS as consistent as possible; may require
more changes depending on what passes and doesn't pass on macOS.
The GHA workflow for Windows will be revised in a separate PR.