Update controller and agent to kube-rs client 0.91.0
#1157
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Rust | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- .github/workflows/check-rust.yml | |
- '**.rs' | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- .github/workflows/check-rust.yml | |
- '**.rs' | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout the head commit of the branch | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Rust install | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.75.0 | |
components: clippy, rustfmt | |
- name: Install Linux requirements | |
# TODO: When ubuntu-latest gets updated to >= 23.04 replace the wget+unzip with just protobuf-compiler in apt | |
run: | | |
apt_dependencies="git curl libssl-dev pkg-config libudev-dev libv4l-dev" | |
echo "Run apt update and apt install the following dependencies: $apt_dependencies" | |
sudo apt update | |
sudo apt install -y $apt_dependencies | |
echo "Download and install recent enough protobuf compiler" | |
wget https://github.com/protocolbuffers/protobuf/releases/download/v24.3/protoc-24.3-linux-x86_64.zip && sudo unzip protoc-24.3-linux-x86_64.zip bin/protoc -d /usr | |
- name: Check rust format | |
run: cargo fmt --all -- --check | |
- name: Check clippy | |
run: cargo clippy --all | |
- name: Check clippy for tests | |
run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::derive_partial_eq_without_eq | |
- name: Run check | |
run: cargo check | |
- name: Run tests | |
run: cargo test | |
- name: Run tests --ignored | |
run: cargo test -- --ignored | |
- name: Run doc | |
run: export RUSTDOCFLAGS="-Dwarnings" && cargo doc --no-deps |