Skip to content

make AtprotoClientMetadata's client_uri optional (#270) #666

make AtprotoClientMetadata's client_uri optional (#270)

make AtprotoClientMetadata's client_uri optional (#270) #666

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)
if: matrix.rust != 'stable'
run: cargo fmt-no-gen --check