Skip to content

Commit

Permalink
chore(ci): add protoc to rust build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel committed Oct 9, 2024
1 parent 32fc94d commit add77c6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure
run: mkdir -p build && cd build && cmake ../c -DSUBSTRAIT_VALIDATOR_BUILD_TESTS=ON
- name: Build
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check
run: cargo check --all-features

Expand All @@ -36,6 +39,9 @@ jobs:
python-version: "3.x"
if: ${{ matrix.os == 'ubuntu-latest' }}
- uses: Swatinem/rust-cache@v2
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run unit tests
run: cargo test --all-features
- name: Install test runner dependencies
Expand Down Expand Up @@ -71,6 +77,9 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Clippy
run: cargo clippy --all-features -- -D warnings

Expand All @@ -83,6 +92,9 @@ jobs:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Doc
run: RUSTDOCFLAGS="-Dwarnings" cargo doc --workspace --all-features

Expand All @@ -97,6 +109,9 @@ jobs:
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch Substrait submodule tags
working-directory: substrait
run: |
Expand Down

0 comments on commit add77c6

Please sign in to comment.