Skip to content

Commit e0e0c42

Browse files
committed
fix: add protoc to workflow files
1 parent 9dc6874 commit e0e0c42

7 files changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
- name: Install protobuf compiler
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y protobuf-compiler
1822
- name: Build
1923
run: cargo test --workspace --verbose --no-run
2024
- name: Run tests

.github/workflows/coverage-pr.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
with:
2020
ref: ${{ github.event.pull_request.head.sha }}
2121

22+
- name: Install protobuf compiler
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y protobuf-compiler
26+
2227
- run: cargo install cargo-llvm-cov
2328
- run: rustup component add llvm-tools-preview
2429
- run: cargo llvm-cov --workspace --lcov --output-path lcov.info --ignore-filename-regex '^examples/'
@@ -71,6 +76,12 @@ jobs:
7176
with:
7277
ref: ${{ github.event.pull_request.base.sha }}
7378

79+
- name: Install protobuf compiler (fallback path)
80+
if: ${{ steps.base_art.outputs.found == 'false' }}
81+
run: |
82+
sudo apt-get update
83+
sudo apt-get install -y protobuf-compiler
84+
7485
- name: Install cargo-llvm-cov (fallback path)
7586
if: ${{ steps.base_art.outputs.found == 'false' }}
7687
run: cargo install cargo-llvm-cov

.github/workflows/coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17+
- name: Install protobuf compiler
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y protobuf-compiler
21+
1722
- run: cargo install cargo-llvm-cov
1823
- run: rustup component add llvm-tools-preview
1924
- run: cargo llvm-cov --workspace --lcov --output-path lcov.info --ignore-filename-regex '^examples/'

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
fetch-depth: 1
2020
persist-credentials: false
2121

22+
- name: Install protobuf compiler
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y protobuf-compiler
26+
2227
- name: Setup pages
2328
id: pages
2429
uses: actions/configure-pages@v5

.github/workflows/linter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
17+
- name: Install protobuf compiler
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y protobuf-compiler
21+
1622
- run: rustup +nightly component add rustfmt
1723
- name: Run Fmt
1824
run: cargo +nightly fmt --all -- --check

.github/workflows/semver-checks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
# cargo-semver-checks needs the full git history to compare versions
2727
fetch-depth: 0
2828

29+
- name: Install protobuf compiler
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y protobuf-compiler
33+
2934
- name: Cache cargo registry
3035
uses: actions/cache@v4
3136
with:

.github/workflows/ub-detection.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19+
20+
- name: Install protobuf compiler
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y protobuf-compiler
24+
1925
- run: |
2026
rustup +nightly component add miri
2127
cargo +nightly miri setup

0 commit comments

Comments
 (0)