diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca7693b..f2840dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,17 +52,11 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Setup cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-check - - name: Install rust run: rustup update --no-self-update stable + + - name: Setup cache + uses: Swatinem/rust-cache@v2 - name: Install cargo hack run: cargo install cargo-hack --debug @@ -88,20 +82,14 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Setup cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-test-${{ matrix.rust }} - - name: Install rust run: | rustup default ${{ matrix.rust }} rustup update --no-self-update ${{ matrix.rust }} + - name: Setup cache + uses: Swatinem/rust-cache@v2 + - name: Install postfix run: | DEBIAN_FRONTEND=noninteractive sudo apt-get update