Skip to content

Commit c31c00c

Browse files
gate this
1 parent 2bb8add commit c31c00c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,15 @@ jobs:
114114

115115
- name: Setup opam switch
116116
if: steps.cache-opam.outputs.cache-hit != 'true'
117-
env:
118-
CFLAGS: -I/opt/homebrew/include/
119117
run: |
120118
set -Eeuxo pipefail
119+
120+
if [[ "${{ runner.os }}" == "macOS" ]]; then
121+
CFLAGS=-I/opt/homebrew/include/
122+
LDFLAGS=-L/opt/homebrew/lib/
123+
PKG_CONFIG_PATH="$(brew --prefix libpq)/lib/ pkgconfig:$PKG_CONFIG_PATH"
124+
fi
125+
121126
opam repository set-url default https://github.com/ocaml/opam-repository.git\#08d8c16c16dc6b23a5278b06dff0ac6c7a217356
122127
opam repository add --yes --all --set-default o1-labs https://github.com/o1-labs/opam-repository.git
123128
opam pin add --no-action async_ssl https://github.com/o1-labs/async_ssl.git\#v0.14-o1labs

0 commit comments

Comments
 (0)