Skip to content

Commit ce6558d

Browse files
committed
try again
1 parent 57954f0 commit ce6558d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build-cli-release.reusable.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,14 @@ jobs:
146146
# working-directory: engine
147147

148148
- name: Build CFFI Library
149-
run: >
150-
PATH=$HOME/go/bin:$PATH ${{ env.CARGO }} build --release -p baml_cffi ${{ env.TARGET_FLAGS }}
149+
shell: bash
150+
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 }}
151157
working-directory: engine
152158
# Skip this step on Windows runners
153159
if: matrix._.os != 'windows-2022'

0 commit comments

Comments
 (0)