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 2026/06/01 16:19:25 UTC
(opendal-oli) branch main updated: ci: clean up workflow setup (#32)
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/opendal-oli.git
The following commit(s) were added to refs/heads/main by this push:
new cdd2234 ci: clean up workflow setup (#32)
cdd2234 is described below
commit cdd2234c2891f4cb6afd100e5b35b15d833c7451
Author: Chojan Shang <ps...@apache.org>
AuthorDate: Tue Jun 2 00:19:19 2026 +0800
ci: clean up workflow setup (#32)
---
.github/actions/setup/action.yml | 45 ++--------------------------------------
.github/workflows/ci.yml | 4 ----
.github/workflows/release.yml | 4 ----
3 files changed, 2 insertions(+), 51 deletions(-)
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 0337e91..d9fed04 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -16,12 +16,11 @@
# under the License.
name: Setup Rust Builder
-description: 'Prepare Rust Build Environment'
+description: "Prepare Rust Build Environment"
inputs:
- need-rocksdb:
- description: "This setup needs rocksdb or not"
need-protoc:
description: "This setup needs protoc or not"
+ default: "false"
github-token:
description: "Github Token"
default: ""
@@ -45,49 +44,9 @@ runs:
# Make sure rust has been setup
cargo version
- # 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
if: inputs.need-protoc == 'true'
uses: arduino/setup-protoc@v3
with:
version: "23.4"
repo-token: ${{ inputs.github-token }}
-
- - name: Setup rocksdb on linux
- if: runner.os == 'Linux' && inputs.need-rocksdb == 'true'
- shell: bash
- run: |
- # Set rocksdb lib path
- echo "ROCKSDB_LIB_DIR=/tmp/rocksdb/lib" >> $GITHUB_ENV
-
- - name: Cache rocksdb
- id: cache-rocksdb
- uses: actions/cache@v4
- if: runner.os == 'Linux' && inputs.need-rocksdb == 'true'
- with:
- path: /tmp/rocksdb
- key: r2-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'
- shell: bash
- run: |
- set -e
-
- 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
- cd rocksdb-8.1.1
-
- mkdir /tmp/rocksdb
- cmake -DCMAKE_INSTALL_PREFIX=/tmp/rocksdb -DPORTABLE=1
- make -j$(nproc)
- make install
-
- cd ..
- rm -rf /tmp/rocksdb-8.1.1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f29d864..16e129f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -37,10 +37,6 @@ jobs:
- name: Setup Rust toolchain
uses: ./.github/actions/setup
- with:
- need-rocksdb: true
- need-protoc: true
- github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad
- name: Cargo clippy && test
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4a3b3ea..56380b1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -58,10 +58,6 @@ jobs:
- name: Setup Rust builder
uses: ./.github/actions/setup
- with:
- need-rocksdb: false
- need-protoc: false
- github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build target
uses: ClementTsang/cargo-action@v0.0.7