diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 5c701e35..270a512e 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -21,12 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - components: clippy - override: true - profile: minimal + components: clippy, rustfmt - uses: actions/cache@v3 continue-on-error: false with: @@ -39,10 +37,7 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- - run: cargo clippy --all --all-features -- -D warnings - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: cargo fmt --all -- --check - name: Install cargo-machete uses: baptiste0928/cargo-install@v1 with: @@ -66,12 +61,10 @@ jobs: rust: stable steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - uses: actions/cache@v3 continue-on-error: false with: @@ -100,12 +93,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - run: wasm-pack test --node working-directory: ferveo-wasm @@ -120,12 +111,10 @@ jobs: - wasm32-unknown-unknown steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - run: wasm-pack build --target nodejs working-directory: ferveo-wasm @@ -157,12 +146,10 @@ jobs: python-version: ${{ matrix.python }} - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true + targets: ${{ matrix.target }} - name: Install Ferveo Python package run: pip install -e . @@ -196,12 +183,10 @@ jobs: needs: [ test ] steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: stable - target: x86_64-unknown-linux-gnu - override: true + targets: x86_64-unknown-linux-gnu - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov # Only checking the coverage of the main library, @@ -220,12 +205,10 @@ jobs: needs: [ test ] steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: stable - target: x86_64-unknown-linux-gnu - override: true + targets: x86_64-unknown-linux-gnu - name: Compile benchmarks run: cargo bench --no-run --no-default-features @@ -245,12 +228,10 @@ jobs: - tpke steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@v1 with: - profile: minimal toolchain: nightly - target: x86_64-unknown-linux-gnu - override: true + targets: x86_64-unknown-linux-gnu - uses: actions/cache@v3 continue-on-error: false with: