Skip to content

Commit

Permalink
make sure protoc works in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wcygan committed Sep 19, 2023
1 parent a94a9ab commit 93e913d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Setup protoc
uses: arduino/setup-protobuf@v1
- name: Install Tonic tools
run: cargo install tonic-build
- name: cargo fmt --check
run: cargo fmt --check
clippy:
Expand All @@ -38,6 +42,10 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: Setup protoc
uses: arduino/setup-protobuf@v1
- name: Install Tonic tools
run: cargo install tonic-build
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
Expand All @@ -51,6 +59,10 @@ jobs:
submodules: true
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: Setup protoc
uses: arduino/setup-protobuf@v1
- name: Install Tonic tools
run: cargo install tonic-build
- name: cargo doc
run: cargo doc --no-deps --all-features
env:
Expand All @@ -66,6 +78,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: cargo install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Setup protoc
uses: arduino/setup-protobuf@v1
- name: Install Tonic tools
run: cargo install tonic-build
- name: cargo hack
run: cargo hack --feature-powerset check --lib --tests
msrv:
Expand All @@ -84,5 +100,9 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.msrv }}
- name: Setup protoc
uses: arduino/setup-protobuf@v1
- name: Install Tonic tools
run: cargo install tonic-build
- name: cargo +${{ matrix.msrv }} check
run: cargo check
8 changes: 8 additions & 0 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
submodules: true
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: Install Tonic tools
run: cargo install tonic-build
- name: Setup protoc
uses: arduino/setup-protobuf@v1
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
Expand All @@ -38,9 +42,13 @@ jobs:
- name: Install beta
if: hashFiles('Cargo.lock') != ''
uses: dtolnay/rust-toolchain@beta
- name: Setup protoc
uses: arduino/setup-protobuf@v1
- name: cargo update
if: hashFiles('Cargo.lock') != ''
run: cargo update
- name: Install Tonic tools
run: cargo install tonic-build
- name: cargo test
if: hashFiles('Cargo.lock') != ''
run: cargo test --locked --all-features
Expand Down

0 comments on commit 93e913d

Please sign in to comment.