diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b7dd74cef..05e47cbadd 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" + CGO_LDLAGS: "-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..2071781bdb 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" + CGO_LDLAGS: "-L/opt/homebrew/lib" - name: Build Windows shell: msys2 {0}