diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9922906..1663881 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,29 +29,19 @@ jobs: key: ${{ matrix.os }}-cargo--${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }} - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal components: clippy, rustfmt toolchain: ${{ matrix.rust }} - override: true - name: Clippy - uses: actions-rs/cargo@v1 - with: - command: clippy + run: cargo clippy --all-features -- -W clippy::all -D warnings - name: Format - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: Doc Generation - uses: actions-rs/cargo@v1 - with: - command: doc - args: --all-features + run: cargo doc --bins --examples --all-features --no-deps build: runs-on: ${{ matrix.os }} @@ -85,23 +75,16 @@ jobs: key: ${{ matrix.os }}-cargo--${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }} - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal components: clippy toolchain: ${{ matrix.rust }} - override: true - name: Build debug binary - uses: actions-rs/cargo@v1 - with: - command: build + run: cargo build - name: Build release binary - uses: actions-rs/cargo@v1 - with: - command: build - args: --release + run: cargo build --release test: runs-on: ${{ matrix.os }} @@ -135,15 +118,10 @@ jobs: key: ${{ matrix.os }}-cargo--${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }} - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal components: clippy toolchain: ${{ matrix.rust }} - override: true - name: Test - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features -- --test-threads=1 + run: cargo test --all-features -- --test-threads=1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b68cf4..348e1b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,22 +60,15 @@ jobs: uses: actions/checkout@v4 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Fetch dependencies - uses: actions-rs/cargo@v1 - with: - command: fetch + run: cargo fetch - name: Build release binaries - uses: actions-rs/cargo@v1 - with: - command: build - args: --release + run: cargo build --release - name: Create github release id: create_release