From efe69ac173976f52e44e17767e8a0b5bb5f58d1b Mon Sep 17 00:00:00 2001 From: Rohan Singh Date: Fri, 26 Apr 2024 15:46:20 +0000 Subject: [PATCH] Try to fix macOS build It can't find `webp/demux.h` any more for some reason. --- .github/workflows/main.yml | 9 ++++++++- .github/workflows/pull-request.yml | 11 +++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b7dd74cef..dd1bb37996 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,10 +80,17 @@ jobs: - name: Build frontend run: npm run build - - name: Build + - name: Build Linux run: make build if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-latest' + - name: Build macOS + run: make build + if: matrix.os == 'macos-latest' + env: + CGO_CPPFLAGS: "-I/opt/homebrew/include" + LIBRARY_PATH: "-L/opt/homebrew/lib" + - name: Build Windows shell: msys2 {0} run: | diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5c3e7c593f..d0430e61ac 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -78,9 +78,16 @@ jobs: - name: Build frontend run: npm run build - - name: Build + - name: Build Linux run: make build - if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-latest' + if: matrix.os == 'ubuntu-22.04' + + - name: Build macOS + run: make build + if: matrix.os == 'macos-latest' + env: + CGO_CPPFLAGS: "-I/opt/homebrew/include" + LIBRARY_PATH: "-L/opt/homebrew/lib" - name: Build Windows shell: msys2 {0}