fix(deps): update rust crate tokio to v1.42.0 (#397) #1139
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Format check | |
run: cargo fmt --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cache | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo-clippy- | |
- name: Clippy | |
run: cargo clippy -- --deny warnings | |
build: | |
name: build (${{ matrix.job.target }}) | |
runs-on: ${{ matrix.job.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
job: | |
- { target: aarch64-apple-darwin, os: macos-latest } | |
# - { target: aarch64-pc-windows-gnu, os: ubuntu-latest } | |
# - { target: aarch64-pc-windows-msvc, os: windows-latest } | |
- { target: aarch64-unknown-linux-gnu, os: ubuntu-latest } | |
- { target: aarch64-unknown-linux-musl, os: ubuntu-latest } | |
# - { target: arm-unknown-linux-gnueabi, os: ubuntu-latest } | |
# - { target: arm-unknown-linux-gnueabihf, os: ubuntu-latest } | |
# - { target: arm-unknown-linux-musleabi, os: ubuntu-latest } | |
# - { target: arm-unknown-linux-musleabihf, os: ubuntu-latest } | |
- { target: armv7-unknown-linux-gnueabi, os: ubuntu-latest } | |
- { target: armv7-unknown-linux-gnueabihf, os: ubuntu-latest } | |
- { target: armv7-unknown-linux-musleabi, os: ubuntu-latest } | |
- { target: armv7-unknown-linux-musleabihf, os: ubuntu-latest } | |
# - { target: i686-pc-windows-gnu, os: ubuntu-latest } | |
# - { target: i686-pc-windows-msvc, os: windows-latest } | |
# - { target: i686-unknown-linux-gnu, os: ubuntu-latest } | |
# - { target: i686-unknown-linux-musl, os: ubuntu-latest } | |
- { target: x86_64-apple-darwin, os: macos-latest } | |
- { target: x86_64-pc-windows-gnu, os: ubuntu-latest } | |
- { target: x86_64-pc-windows-msvc, os: windows-latest } | |
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } | |
- { target: x86_64-unknown-linux-musl, os: ubuntu-latest } | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cache | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-${{ matrix.job.target }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.job.target }}-cargo-build- | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.job.target }} | |
- name: Install cross | |
run: cargo install --force cross | |
if: runner.os == 'Linux' | |
- name: Build | |
run: cargo build --locked --target=${{ matrix.job.target }} | |
if: runner.os != 'Linux' | |
- name: Build (cross) | |
run: cross build --locked --target=${{ matrix.job.target }} | |
if: runner.os == 'Linux' | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cache | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo-test- | |
- name: Test | |
run: cargo test --all-targets --all-features | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Audit | |
run: cargo audit |