We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57954f0 commit ce6558dCopy full SHA for ce6558d
1 file changed
.github/workflows/build-cli-release.reusable.yaml
@@ -146,8 +146,14 @@ jobs:
146
# working-directory: engine
147
148
- name: Build CFFI Library
149
- run: >
150
- PATH=$HOME/go/bin:$PATH ${{ env.CARGO }} build --release -p baml_cffi ${{ env.TARGET_FLAGS }}
+ shell: bash
+ env:
151
+ PROTOC_ARGS: --plugin=protoc-gen-go=$HOME/go/bin/protoc-gen-go
152
+ run: |
153
+ # The PROTOC_ARGS env var is used by prost-build to pass arguments to protoc.
154
+ # We use it to explicitly tell the vendored protoc where to find the go plugin,
155
+ # as the cross-compile environment does not inherit the PATH correctly.
156
+ ${{ env.CARGO }} build --release -p baml_cffi ${{ env.TARGET_FLAGS }}
157
working-directory: engine
158
# Skip this step on Windows runners
159
if: matrix._.os != 'windows-2022'
0 commit comments