From 3bfcd013094e7c79cea9174359ffae22221f57cd Mon Sep 17 00:00:00 2001 From: mcuee Date: Sun, 28 Apr 2024 19:06:26 +0800 Subject: [PATCH] Add macOS autotools to github action (#1798) * Update build.yml to add autotools build for macOS * Update build.yml to use /opt/homebrew --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77ca6131..c11bad35 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -245,6 +245,39 @@ jobs: build/src/avrdude build/src/avrdude.conf + macos-x86_64_autotools: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Install prerequisites + run: >- + # brew update + + brew install + automake + autoconf + libtool + gettext + flex + bison + libelf + libusb + hidapi + libftdi + readline + libserialport + pkg-config + - name: Configure + run: >- + ./src/bootstrap + + mkdir _ambuild && cd _ambuild + + CFLAGS="-I/opt/homebrew/local/include" LDFLAGS="-L/opt/homebrew/Cellar" ../src/configure + + - name: Build + run: make -C _ambuild -j$(nproc) + msvc: runs-on: windows-latest strategy: