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:19:09 UTC

[incubator-opendal] branch fix-ci-cache created (now aad83fdb)

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

xuanwo pushed a change to branch fix-ci-cache
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


      at aad83fdb ci: Split cache into more parts

This branch includes the following new commits:

     new aad83fdb ci: Split cache into more parts

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-opendal] 01/01: ci: Split cache into more parts

Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit aad83fdb71d6e47a50cef0ebdf8b9f940e57fb22
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Mar 22 12:18:42 2023 +0800

    ci: Split cache into more parts
    
    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