diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d20b67b..e63c7af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,20 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: nightly - profile: minimal - override: true components: clippy, rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - run: cargo fmt --all -- --check + - run: cargo clippy -- -D warnings test: runs-on: ubuntu-latest @@ -34,12 +26,7 @@ jobs: toolchain: [ stable, beta, nightly ] steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - profile: minimal - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --workspace \ No newline at end of file + - run: cargo test --workspace \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 889b1e0..437145e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,10 +7,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - uses: katyo/publish-crates@v2 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file