Skip to content

Commit

Permalink
ci: also compile protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Valdes committed Dec 21, 2024
1 parent ff00d86 commit d2275e1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,32 @@ 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:
toolchain: stable
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
Expand Down

0 comments on commit d2275e1

Please sign in to comment.