Bump clap from 4.5.60 to 4.6.1 (#111) #415
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - '*' | |
| push: | |
| branches: | |
| - master | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| RUSTFLAGS: --deny warnings | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Clippy | |
| run: cargo clippy --all --all-targets | |
| - name: Format | |
| run: cargo fmt --all -- --check | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install ripgrep shellcheck | |
| - name: Check for Forbidden Words | |
| run: ./bin/forbid | |
| - name: Check /bin scripts | |
| run: shellcheck bin/* | |
| msrv: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check | |
| run: cargo check | |
| test: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Remove Broken WSL bash executable | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| shell: cmd | |
| run: | | |
| takeown /F C:\Windows\System32\bash.exe | |
| icacls C:\Windows\System32\bash.exe /grant administrators:F | |
| del C:\Windows\System32\bash.exe | |
| - uses: msys2/setup-msys2@v2 | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| with: | |
| install: diffutils m4 make mingw-w64-x86_64-gcc | |
| msystem: MINGW64 | |
| path-type: inherit | |
| update: true | |
| - name: Install Windows GNU Rust Toolchain | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: rustup toolchain install stable-x86_64-pc-windows-gnu | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Test | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: cargo test --all | |
| - name: Test | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: cargo +stable-x86_64-pc-windows-gnu test --all | |
| shell: msys2 {0} |