From 15295ba9e30aa2b8c67f81c9045b79d31778de30 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..d153f7b5f6 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: + LIBRARY_PATH: "/opt/homebrew/lib" + CGO_CPPFLAGS: "-I/opt/homebrew/include" + - name: Build Windows shell: msys2 {0} run: | diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5c3e7c593f..9ff96dd2d8 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: + LIBRARY_PATH: "/opt/homebrew/lib" + CGO_CPPFLAGS: "-I/opt/homebrew/include" - name: Build Windows shell: msys2 {0}