gh-101981: Build macOS as recommended by the devguide (GH-102070) (cherry picked from commit 27136310414965a3ea7f835e416cf74b91cefb48) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Automerge-Triggered-By: GH:erlend-aasland