diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1d07b46..246ad24 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -26,10 +26,8 @@ jobs: uses: actions/checkout@v3 - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true components: llvm-tools-preview - name: Install cargo-llvm-cov diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4fa17ec..4564bde 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,31 +29,18 @@ jobs: uses: actions/checkout@v3 - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: stable - override: true components: rustfmt, clippy - name: cargo build - uses: actions-rs/cargo@v1 - with: - command: build + run: cargo build - name: cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt + run: cargo fmt - name: cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + run: cargo clippy -- -D warnings - name: cargo clippy without default features - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --no-default-features -- -D warnings + run: cargo clippy --no-default-features -- -D warnings diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e925832..eb8f488 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,31 +51,20 @@ jobs: uses: actions/checkout@v3 - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal - target: ${{ matrix.target }} + targets: ${{ matrix.target }} toolchain: ${{ matrix.toolchain }} - override: true components: rustfmt, clippy - name: cargo build - uses: actions-rs/cargo@v1 - with: - command: build - args: --target=${{ matrix.target }} + run: cargo build --target=${{ matrix.target }} if: ${{ !matrix.minimal_setup }} - name: cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --target=${{ matrix.target }} + run: cargo test --target=${{ matrix.target }} if: ${{ !matrix.minimal_setup }} - name: cargo build without default features and without dev dependencies - uses: actions-rs/cargo@v1 - with: - command: build - args: --release --target=${{ matrix.target }} --no-default-features + run: cargo build --release --target=${{ matrix.target }} --no-default-features if: ${{ matrix.minimal_setup }}