diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b655e144..97babe78 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,23 +18,7 @@ jobs: override: true profile: minimal components: clippy - # caching - - name: Cache cargo registry - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-v1-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-v1-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo target dir - uses: actions/cache@v2.1.6 - with: - path: target - key: ${{ runner.os }}-v1-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - # /caching + - uses: Swatinem/rust-cache@v1 - name: Check uses: actions-rs/cargo@v1 with: @@ -55,23 +39,7 @@ jobs: toolchain: stable override: true profile: minimal - # caching - - name: Cache cargo registry - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-v1-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-v1-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo target dir - uses: actions/cache@v2.1.6 - with: - path: target - key: ${{ runner.os }}-v1-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - # /caching + - uses: Swatinem/rust-cache@v1 - name: cargo doc working-directory: ${{ matrix.subcrate }} env: @@ -87,23 +55,7 @@ jobs: toolchain: stable override: true profile: minimal - # caching - - name: Cache cargo registry - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-v1-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-v1-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo target dir - uses: actions/cache@v2.1.6 - with: - path: target - key: ${{ runner.os }}-v1-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - # /caching + - uses: Swatinem/rust-cache@v1 - name: Install cargo-hack run: | curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin @@ -125,23 +77,7 @@ jobs: toolchain: ${{ matrix.rust }} override: true profile: minimal - # caching - - name: Cache cargo registry - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-v1-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-v1-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo target dir - uses: actions/cache@v2.1.6 - with: - path: target - key: ${{ runner.os }}-v1-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - # /caching + - uses: Swatinem/rust-cache@v1 - name: Run tests uses: actions-rs/cargo@v1 with: @@ -158,23 +94,7 @@ jobs: toolchain: stable override: true profile: minimal - # caching - - name: Cache cargo registry - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-v1-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v2.1.6 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-v1-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo target dir - uses: actions/cache@v2.1.6 - with: - path: target - key: ${{ runner.os }}-v1-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - # /caching + - uses: Swatinem/rust-cache@v1 - name: Run doc tests uses: actions-rs/cargo@v1 with: