From 022e8d0ee88fff5eaafc6749d0963398508c3128 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Wed, 18 Sep 2024 14:44:25 +0100 Subject: [PATCH] Install protoc when building --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62eb609..ce5c474 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,16 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1 with: target: ${{ matrix.target }} + - name: Install protoc for lang repo + run: | + if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then + sudo apt-get update + sudo apt-get install -y protobuf-compiler + elif [ "${{ matrix.os }}" = "macos-latest" ]; then + brew install protobuf + elif [ "${{ matrix.os }}" = "windows-latest" ]; then + choco install protoc + fi - name: Build diffenator3/diff3proof uses: actions-rs/cargo@v1 with: