Skip to content

Commit

Permalink
Add protoc install step in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelvanstraten committed Mar 26, 2024
1 parent 26ebae6 commit a56dc34
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
submodules: true
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
# Some crates require the protoc compiler to be available at compile time.
# Maybe this should be installed by default on all runners.
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
Expand All @@ -48,6 +52,10 @@ jobs:
- name: Install beta
if: hashFiles('Cargo.lock') != ''
uses: dtolnay/rust-toolchain@beta
# Some crates require the protoc compiler to be available at compile time.
# Maybe this should be installed by default on all runners.
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: cargo update
if: hashFiles('Cargo.lock') != ''
run: cargo update
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
# Some crates require the protoc compiler to be available at compile time.
# Maybe this should be installed by default on all runners.
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: cargo generate-lockfile
# enable this ci template to run regardless of whether the lockfile is checked in or not
if: hashFiles('Cargo.lock') == ''
Expand Down Expand Up @@ -76,6 +80,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Install nightly for -Zminimal-versions
uses: dtolnay/rust-toolchain@nightly
# Some crates require the protoc compiler to be available at compile time.
# Maybe this should be installed by default on all runners.
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: rustup default stable
run: rustup default stable
- name: cargo update -Zminimal-versions
Expand All @@ -102,6 +110,10 @@ jobs:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
# Some crates require the protoc compiler to be available at compile time.
# Maybe this should be installed by default on all runners.
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
Expand Down Expand Up @@ -139,6 +151,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
# Some crates require the protoc compiler to be available at compile time.
# Maybe this should be installed by default on all runners.
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: cargo install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: cargo generate-lockfile
Expand Down

0 comments on commit a56dc34

Please sign in to comment.