Skip to content

changed: sub_cfg_from_indices accepts any iterator for nodes (#152) #807

changed: sub_cfg_from_indices accepts any iterator for nodes (#152)

changed: sub_cfg_from_indices accepts any iterator for nodes (#152) #807

Workflow file for this run

name: Style
on:
push:
branches:
- main
tags:
- '*'
pull_request:
types:
- opened
- synchronize
- reopened
workflow_dispatch:
jobs:
build:
name: ${{matrix.name || format('Rust {0}', matrix.rust)}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
rust: [ stable ]
os: [ ubuntu ]
env:
RUSTFLAGS: --cfg deny_warnings -Dwarnings
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: ${{matrix.rust}}
components: clippy, rustfmt
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}-
${{ runner.os }}-cargo-registry-
- name: Cache cargo git index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-${{ steps.toolchain.outputs.cachekey }}-
${{ runner.os }}-cargo-git-
- name: Cache target directory
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-target-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-target-${{ steps.toolchain.outputs.cachekey }}-
${{ runner.os }}-target-
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings