Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
Added protoc to rust github action
  • Loading branch information
10d9e authored Nov 2, 2023
1 parent 0d19660 commit 1958f61
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,25 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# Install protoc
- name: Install Protocol Buffers Compiler
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
# Install Rust plugin for protoc (optional, depending on your needs)
- name: Install protoc-gen-rust
run: cargo install protobuf-codegen

# Build
- name: Build
run: cargo build --verbose

# Run tests
- name: Run tests
run: cargo test --verbose

0 comments on commit 1958f61

Please sign in to comment.