You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/03/22 04:23:14 UTC

[incubator-opendal] branch main updated: ci: Split cache into more parts (#1730)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 04ca6e5c ci: Split cache into more parts (#1730)
04ca6e5c is described below

commit 04ca6e5c29f5ddd637f4633f987fe7f5eadc3751
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Mar 22 12:23:09 2023 +0800

    ci: Split cache into more parts (#1730)
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 .github/actions/setup/action.yaml | 2 +-
 .github/workflows/ci.yml          | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml
index 304208d1..c99db12b 100644
--- a/.github/actions/setup/action.yaml
+++ b/.github/actions/setup/action.yaml
@@ -35,8 +35,8 @@ runs:
           target/
         key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}${{ inputs.cache-key }}
         restore-keys: |
-          ${{ runner.os }}-cargo
           ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
+          ${{ runner.os }}-cargo
 
     - name: Setup rust related environment variables
       shell: bash
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f05a5e24..5f6116db 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,7 +55,7 @@ jobs:
       - name: Setup Rust toolchain
         uses: ./.github/actions/setup
         with:
-          cache-key: "-services-all"
+          cache-key: "-check"
 
       - name: Check license headers
         uses: korandoru/hawkeye@v1.5.4
@@ -117,7 +117,7 @@ jobs:
       - name: Setup Rust toolchain
         uses: ./.github/actions/setup
         with:
-          cache-key: "-services-all"
+          cache-key: "-build-all-features"
       - name: Build
         run: cargo build --all-features