diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b7dd74cef..7616f3fcb5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,10 +80,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' + - name: Build macOS + run: make build + if: matrix.os == 'macos-latest' + env: + 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..3ec9f4d403 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -78,9 +78,15 @@ 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" - name: Build Windows shell: msys2 {0}