From 93f226206e6129fa7bdf5bc6d23bde3892c547fd Mon Sep 17 00:00:00 2001 From: fengyingcai Date: Wed, 8 Jun 2022 00:49:11 +0800 Subject: [PATCH] ci: update github action --- .github/workflows/build.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7417c9b..e99eb98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,12 +17,8 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Cache - uses: actions/cache@v3 - with: - key: ${{ runner.os }}-cache - path: | - ~/.cargo + # Rust cache + - uses: Swatinem/rust-cache@v1 - run: | sudo apt update @@ -60,12 +56,8 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Cache - uses: actions/cache@v3 - with: - key: ${{ runner.os }}-cache - path: | - ~/.cargo + # Rust cache + - uses: Swatinem/rust-cache@v1 - name: Rust toolchain uses: actions-rs/toolchain@v1 @@ -92,12 +84,8 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Cache - uses: actions/cache@v3 - with: - key: ${{ runner.os }}-cache - path: | - ~/.cargo + # Rust cache + - uses: Swatinem/rust-cache@v1 - name: Rust toolchain uses: actions-rs/toolchain@v1