Skip to content

chore(docker): Pin Rust base image to 1.85-slim for edition2024 support #307

chore(docker): Pin Rust base image to 1.85-slim for edition2024 support

chore(docker): Pin Rust base image to 1.85-slim for edition2024 support #307

Workflow file for this run

name: Rust CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install dependencies (Protoc)
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler libprotobuf-dev
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt, llvm-tools-preview
- name: Check Formatting
run: cargo fmt -- --check
- name: Run Clippy (Linter)
run: cargo clippy -- -D warnings
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Run Tests & Generate Coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
- name: Build Release
run: cargo build --release --verbose