From d2275e1583efd970a923d70c8aacbe5a43237a9d Mon Sep 17 00:00:00 2001 From: Laurent Valdes Date: Sat, 21 Dec 2024 21:22:18 +0100 Subject: [PATCH] ci: also compile protobuf --- .github/workflows/build-and-test.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1d20bc1..6a32e6d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -19,7 +19,14 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - # Step 2. Install Rust (via rustup) + # Step 2. Install Protocol Buffers Compiler (protoc) + - name: Install Protobuf Compiler (protoc) + run: | + sudo apt-get update + sudo apt-get install -y protobuf-compiler + protoc --version # Print protoc version to confirm installation + + # Step 3. Install Rust (via rustup) - name: Setup Rust uses: actions-rs/toolchain@v1 with: @@ -27,17 +34,17 @@ jobs: components: rustfmt, clippy # Install supplementary tools override: true - # Step 3. Install Cargo Dependencies + # Step 4. Install Cargo Dependencies - name: Install dependencies run: | cargo fetch - # Step 4. Build the Project + # Step 5. Build the Project - name: Build the project run: | cargo build --verbose --workspace - # Step 5. Run Tests + # Step 6. Run Tests - name: Run tests run: | cargo test --verbose --workspace