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 b89a2e329 ci: Trying to fix rocksdb build (#2867)
b89a2e329 is described below

commit b89a2e3299688b296ada373f64a476043ad26dce
Author: Xuanwo <[email protected]>
AuthorDate: Tue Aug 15 11:26:08 2023 +0800

    ci: Trying to fix rocksdb build (#2867)
    
    * ci: Trying to fix rocksdb build
    
    Signed-off-by: Xuanwo <[email protected]>
    
    * trigger test
    
    Signed-off-by: Xuanwo <[email protected]>
    
    ---------
    
    Signed-off-by: Xuanwo <[email protected]>
---
 .github/actions/setup/action.yaml          | 14 +++++++++-----
 .github/workflows/service_test_rocksdb.yml |  1 +
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/.github/actions/setup/action.yaml 
b/.github/actions/setup/action.yaml
index a0a7102c6..cca18a285 100644
--- a/.github/actions/setup/action.yaml
+++ b/.github/actions/setup/action.yaml
@@ -43,6 +43,12 @@ runs:
         # Enable sparse index
         echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
 
+    # Make sure all required lib has been installed.
+    - name: Setup Linux
+      if: runner.os == 'Linux'
+      shell: bash
+      run: sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev 
libbz2-dev liblz4-dev libzstd-dev
+
     - name: Setup protoc on linux
       if: inputs.need-protoc == 'true' && runner.os == 'Linux'
       shell: bash
@@ -76,7 +82,7 @@ runs:
       if: runner.os == 'Linux' && inputs.need-rocksdb == 'true'
       with:
         path: /tmp/rocksdb
-        key: r0-rocksdb-8.1.1
+        key: r1-rocksdb-8.1.1
 
     - name: Build rocksdb if not cached
       if: steps.cache-rocksdb.outputs.cache-hit != 'true' && runner.os == 
'Linux' && inputs.need-rocksdb == 'true'
@@ -84,8 +90,6 @@ runs:
       run: |
         set -e
 
-        sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev 
liblz4-dev libzstd-dev
-
         cd /tmp
         curl 
https://github.com/facebook/rocksdb/archive/refs/tags/v8.1.1.tar.gz -L -o 
rocksdb.tar.gz
         tar -xzf rocksdb.tar.gz
@@ -98,7 +102,7 @@ runs:
 
         cd ..
         rm -rf /tmp/rocksdb-8.1.1
-    
+
     - name: Cache foundationdb
       id: cache-foundationdb
       uses: actions/cache@v3
@@ -106,7 +110,7 @@ runs:
       with:
         path: /etc/foundationdb
         key: r0-foundationdb-7.1.17
-    
+
     - name: Build foundationdb if not cached
       if: steps.cache-foundationdb.outputs.cache-hit != 'true' && runner.os == 
'Linux' && inputs.need-foundationdb == 'true'
       shell: bash
diff --git a/.github/workflows/service_test_rocksdb.yml 
b/.github/workflows/service_test_rocksdb.yml
index 7fb3acec6..d07443675 100644
--- a/.github/workflows/service_test_rocksdb.yml
+++ b/.github/workflows/service_test_rocksdb.yml
@@ -30,6 +30,7 @@ on:
       - "!core/src/docs/**"
       - "!core/src/services/**"
       - "core/src/services/rocksdb/**"
+      - ".github/actions/setup/action.yaml"
       - ".github/workflows/service_test_rocksdb.yml"
 
 concurrency:

Reply via email to