diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 65487f5..dd2d28b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,14 +44,11 @@ jobs: uses: actions/checkout@v3 - name: Setup | Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true - profile: minimal target: ${{ matrix.target }} - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Setup | musl tools if: matrix.target == 'x86_64-unknown-linux-musl' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 467fac6..add2639 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,20 +8,11 @@ env: jobs: build_and_test: name: Build and test - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - rust: [stable] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Install ${{ matrix.rust }} - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - override: true + - uses: dtolnay/rust-toolchain@stable - name: tests uses: actions-rs/cargo@v1 @@ -34,11 +25,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - components: rustfmt, clippy - override: true + components: rustmft - name: fmt run: cargo fmt --all -- --check