mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-21 07:03:41 +08:00
7b2cc9dca2
I am not a fan of CI tools that make the checks fail for reasons unrelated to the patch at hand.
42 lines
990 B
YAML
42 lines
990 B
YAML
name: Rust checks
|
|
|
|
on: [push, pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
rustfmt:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- name: cargo fmt
|
|
run: cargo fmt --check --all
|
|
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- name: Install deps
|
|
run: |
|
|
sudo apt install gettext libpcre2-dev
|
|
- name: cmake
|
|
run: |
|
|
cmake -B build
|
|
- name: cargo clippy
|
|
# This used to have --deny=warnings, but that turns rust release day
|
|
# into automatic CI failure day, so we don't do that.
|
|
run: cargo clippy --workspace --all-targets
|
|
|
|
# Disabling for now because it also checks "advisories",
|
|
# making CI fail for reasons unrelated to the patch
|
|
# cargo-deny:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - uses: actions/checkout@v3
|
|
# - uses: EmbarkStudios/cargo-deny-action@v1
|