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/08/15 03:20:56 UTC
[incubator-opendal] branch fix-rocksdb-test created (now f43f93c4a)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a change to branch fix-rocksdb-test
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
at f43f93c4a ci: Trying to fix rocksdb build
This branch includes the following new commits:
new f43f93c4a ci: Trying to fix rocksdb build
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: Trying to fix rocksdb build
Posted by xu...@apache.org.
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 <gi...@xuanwo.io>
AuthorDate: Tue Aug 15 11:20:42 2023 +0800
ci: Trying to fix rocksdb build
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.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