mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-01 21:44:26 +01:00
fix: protobuf install in build (#2714)
Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
10
.github/workflows/build-cli.yml
vendored
10
.github/workflows/build-cli.yml
vendored
@@ -64,6 +64,12 @@ jobs:
|
||||
RUST_BACKTRACE: 1
|
||||
CROSS_VERBOSE: 1
|
||||
run: |
|
||||
# Install protoc if on macOS
|
||||
if [ "${{ matrix.os }}" = "macos-latest" ]; then
|
||||
brew install protobuf
|
||||
export PROTOC=$(which protoc)
|
||||
fi
|
||||
|
||||
export TARGET="${{ matrix.architecture }}-${{ matrix.target-suffix }}"
|
||||
rustup target add "${TARGET}"
|
||||
echo "Building for target: ${TARGET}"
|
||||
@@ -72,7 +78,7 @@ jobs:
|
||||
echo "Cross version:"
|
||||
cross --version
|
||||
|
||||
# 'cross' is used to cross-compile for different architectures (see Cross.toml)
|
||||
echo "Building with explicit PROTOC path..."
|
||||
cross build --release --target ${TARGET} -p goose-cli -vv
|
||||
|
||||
# tar the goose binary as goose-<TARGET>.tar.bz2
|
||||
@@ -84,4 +90,4 @@ jobs:
|
||||
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # pin@v4
|
||||
with:
|
||||
name: goose-${{ matrix.architecture }}-${{ matrix.target-suffix }}
|
||||
path: ${{ env.ARTIFACT }}
|
||||
path: ${{ env.ARTIFACT }}
|
||||
Reference in New Issue
Block a user