Skip to content

fix: Enabling gzip for request body decompression (#236) #565

fix: Enabling gzip for request body decompression (#236)

fix: Enabling gzip for request body decompression (#236) #565

Workflow file for this run

name: Rust CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings"
jobs:
rust:
name: Rust
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- 1.75.0
- stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Bump opt-level
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
- name: Compile (rust-analyzer)
run: cargo build --verbose
- name: Lint (clippy)
uses: giraffate/clippy-action@v1
with:
reporter: "github-pr-check"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Format (rustfmt)
run: cargo fmt-no-gen --check