Skip to content
38 changes: 29 additions & 9 deletions .github/workflows/build-cli-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ on:
type: boolean
default: true
required: false

push:
branches:
- protoc-fix
env:
MACOSX_DEPLOYMENT_TARGET: "10.13"

Expand Down Expand Up @@ -69,6 +71,7 @@ jobs:
# shell: bash
# run: |
# ci/ubuntu-install-packages


- uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -81,6 +84,23 @@ jobs:

- name: Install protoc-gen-go
run: go install github.com/golang/protobuf/protoc-gen-go@latest

- name: Add protoc-gen-go to path
run: |
echo "$HOME/go/bin" >> $GITHUB_PATH
# Also set for current step
export PATH="$PATH:$HOME/go/bin"
echo "PATH=$PATH:$HOME/go/bin" >> $GITHUB_ENV

- name: Test protoc-gen-go availability
run: |
echo "Current PATH: $PATH"
echo "Go bin directory contents:"
ls -la $HOME/go/bin/
echo "Testing protoc-gen-go..."
protoc-gen-go --version
echo "Which protoc-gen-go:"
which protoc-gen-go

- name: Use Cross
if: contains(matrix._.os, 'ubuntu')
Expand Down Expand Up @@ -111,14 +131,14 @@ jobs:
workspaces: engine
prefix-key: "v5-rust-${{ matrix._.target }}"

# Build the CLI - Always use static-ssl features
- name: Build CLI Binary
# This single step now handles all builds
run: >
${{ env.CARGO }} build --release --bin baml-cli ${{ env.TARGET_FLAGS }}
--features static-ssl
--no-default-features
working-directory: engine
# # Build the CLI - Always use static-ssl features
# - name: Build CLI Binary
# # This single step now handles all builds
# run: >
# ${{ env.CARGO }} build --release --bin baml-cli ${{ env.TARGET_FLAGS }}
# --features static-ssl
# --no-default-features
# working-directory: engine

- name: Build CFFI Library
run: >
Expand Down
Loading