mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-06 10:00:58 -05:00
* ci: centralize protoc setup in a composite action Add .github/actions/setup-protoc that pins both the arduino/setup-protoc SHA and the protoc version (34.1) in one place, so future bumps no longer require touching every workflow. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * ci: replace arduino/setup-protoc with direct release-zip download The arduino action queries the GitHub API on every invocation even when the version is fully pinned, which is unnecessary work. Inline a small shell step that downloads the protoc release zip directly using RUNNER_OS/RUNNER_ARCH for asset selection. Supports Linux, macOS, and Windows (x64 + arm64 where protobuf publishes assets). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: Formatter and linter
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, dev ]
|
|
pull_request:
|
|
branches: [ '**' ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install minimal nightly (only for fmt)
|
|
uses: dtolnay/rust-toolchain@0f1b44df7e9cbb178d781a242338dfa5e243ad7f # nightly
|
|
with:
|
|
components: rustfmt
|
|
- name: Install minimal stable
|
|
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: Install Protoc
|
|
uses: ./.github/actions/setup-protoc
|
|
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
|
|
with:
|
|
key: clippy
|
|
- name: Update apt
|
|
run: sudo apt-get update
|
|
- name: Install dependencies
|
|
run: sudo apt-get install clang libunwind-dev
|
|
- name: Check code formatting
|
|
run: cargo +nightly fmt --all -- --check
|
|
- name: Check cargo clippy warnings
|
|
run: cargo clippy --workspace -- -D warnings
|
|
- name: Check cargo clippy warnings for all targets
|
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
|
- name: Check cargo clippy warnings for all targets and features
|
|
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|