This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch fix-rocksdb-test in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit f43f93c4ade270da613d216c93bc602a5d619533 Author: Xuanwo <[email protected]> AuthorDate: Tue Aug 15 11:20:42 2023 +0800 ci: Trying to fix rocksdb build Signed-off-by: Xuanwo <[email protected]> --- .github/actions/setup/action.yaml | 14 +++++++++----- 1 file changed, 9 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
