diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad9ce17..294ebb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,6 +71,37 @@ jobs: - name: Run check run: if ! meson test -C build; then cat build/meson-logs/testlog.txt; false; fi + build-macos: + runs-on: macos-latest + + strategy: + fail-fast: false + matrix: + build: [ "make", "meson" ] + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install Dependencies + run: | + brew install libyaml swig meson ninja pkg-config + + - name: Build (Make) + if: matrix.build == 'make' + run: | + make + + - name: Setup (Meson) + if: matrix.build == 'meson' + run: meson setup -D python=enabled -D yaml=enabled -D tests=false build + + - name: Build (Meson) + if: matrix.build == 'meson' + run: meson compile -C build + build-windows: runs-on: windows-latest strategy: diff --git a/Makefile b/Makefile index 4b8909a..9110d17 100644 --- a/Makefile +++ b/Makefile @@ -153,6 +153,11 @@ include Makefile.convert-dtsv0 include Makefile.dtc include Makefile.utils +# Flex-generated source triggers -Wsign-compare in its templates +dtc-lexer.lex.o: CFLAGS += -Wno-sign-compare +convert-dtsv0-lexer.lex.o: CFLAGS += -Wno-sign-compare + + BIN += convert-dtsv0 BIN += dtc BIN += fdtdump