dtc/.github/workflows
David Gibson 83cdc93ca9 ci: Add macOS build to GitHub Actions
The codebase already has macOS support (dylib flags in the Makefile,
macOS linker handling in meson.build), but CI only tests Linux,
Windows, and FreeBSD.  This means macOS regressions go unnoticed
until a user reports them.

Add a build-macos job that tests both Make and Meson builds on
macos-latest.  The runner ships with clang, flex, bison, python3,
and git; only libyaml, swig, meson, ninja, and pkg-config are
installed via Homebrew.

Apple Clang uses -Wsign-compare by default, which trips on some lex
generated code.  Suppress the warning for the two flex-generated
objects.

We skip tests for now, because trees.S doesn't work with the MacOS
assembler.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2026-05-26 17:52:08 +10:00
..
build.yml ci: Add macOS build to GitHub Actions 2026-05-26 17:52:08 +10:00