Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

fix(deps): update rust crate clap to 4.4.14 #274

fix(deps): update rust crate clap to 4.4.14

fix(deps): update rust crate clap to 4.4.14 #274

Workflow file for this run

name: CI
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# Disable incremental compilation.
CARGO_INCREMENTAL: 0
# Allow more retries for network requests in `cargo` and `rustup`.
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
# Don't emit giant backtraces in the CI logs.
RUST_BACKTRACE: short
# Use cargo's sparse index protocol
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Rust
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
with:
toolchain: nightly
components: rustfmt
- name: Check formatting
shell: bash
run: cargo +nightly fmt -- --check
check:
name: Check compilation
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: rui314/setup-mold@a06ef6535ccec20261b6f58bbadf24d1ef0e5486 # v1
if: runner.os == 'Linux'
with:
make-default: true
- name: Install Rust
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
with:
toolchain: stable
- name: Deny warnings
shell: bash
run: |
sed -i 's/rustflags = \[/rustflags = \[\n "-Dwarnings",/' .cargo/config.toml
sed -i 's/"-Wmissing_docs",/# "-Wmissing_docs",/' .cargo/config.toml
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
- name: Clippy
shell: bash
run: cargo clippy