bin/darkirc/irc: (clippy chore) replace as_bytes().len() with len() s… #5556
This file contains 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 Checks | |
on: [push, pull_request] | |
jobs: | |
test-units: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-07-07 | |
override: true | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-07-07 | |
target: wasm32-unknown-unknown | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Update apt cache | |
run: | | |
sudo apt update -y | |
- name: Install dependencies (Linux) | |
run: | | |
sh contrib/dependency_setup.sh | |
if: matrix.os == 'ubuntu-latest' | |
- name: Run test units | |
run: | | |
make CARGO="cargo +nightly-2024-07-07" test | |
- name: Compile all bins | |
run: | | |
make CARGO="cargo +nightly-2024-07-07" | |
feature-powerset: | |
name: Test crate feature powerset on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-07-07 | |
override: true | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-07-07 | |
target: wasm32-unknown-unknown | |
override: true | |
- uses: taiki-e/install-action@cargo-hack | |
- uses: Swatinem/rust-cache@v2 | |
- name: Update apt cache | |
run: | | |
sudo apt update -y | |
- name: Install dependencies (Linux) | |
run: | | |
sh contrib/dependency_setup.sh | |
if: matrix.os == 'ubuntu-latest' | |
- name: Run feature powerset builds | |
run: | | |
make CARGO="cargo +nightly-2024-07-07" check | |
fmt: | |
name: rustfmt | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-07-07 | |
components: rustfmt | |
override: true | |
- run: | | |
cargo +nightly-2024-07-07 fmt -- --check |