You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by hu...@apache.org on 2022/05/19 03:11:32 UTC
[incubator-kvrocks] branch unstable updated: Fix release CI: use build.sh & use fresh directory & remove useless deps (#588)
This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 422104e Fix release CI: use build.sh & use fresh directory & remove useless deps (#588)
422104e is described below
commit 422104e5f5da68b63820eb15c7fab40ece75c817
Author: Twice <i...@twice.moe>
AuthorDate: Thu May 19 11:11:28 2022 +0800
Fix release CI: use build.sh & use fresh directory & remove useless deps (#588)
---
.github/workflows/release.yaml | 31 +++++++++++++++----------------
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 0ee7a6e..1126544 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -42,17 +42,16 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get install -y tar cmake
- mkdir -p build/bin
- mkdir -p build/conf
+ mkdir -p build/release/bin
+ mkdir -p build/release/conf
- name: Build
run: |
+ ./build.sh build
cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j4
- cp kvrocks bin/
- cp kvrocks2redis bin/
- cp ../kvrocks.conf conf/
+ cp kvrocks release/bin/
+ cp kvrocks2redis release/bin/
+ cp ../kvrocks.conf release/conf/
cd ..
- name: Set ENV
@@ -64,7 +63,7 @@ jobs:
uses: bpicode/github-action-fpm@v0.9.2
with:
fpm_args: '.'
- fpm_opts: '-t deb -v ${{ env.VERSION }} -C ./build --depends libsnappy-dev ${{ env.FPM_OPTS }}'
+ fpm_opts: '-t deb -v ${{ env.VERSION }} -C ./build/release ${{ env.FPM_OPTS }}'
- name: Release
uses: softprops/action-gh-release@v1
@@ -113,14 +112,14 @@ jobs:
- name: Build
run: |
+ mkdir -p build/release
+ ./build.sh build
cd build
- cmake -DCMAKE_BUILD_TYPE=Release
- make -j4
- mkdir -p bin
- mkdir -p conf
- cp kvrocks bin/
- cp kvrocks2redis bin/
- cp ../kvrocks.conf conf/
+ mkdir -p release/bin release/conf
+ cp kvrocks release/bin/
+ cp kvrocks2redis release/bin/
+ cp ../kvrocks.conf release/conf/
+ cd ..
- name: Set ENV
run: |
@@ -130,7 +129,7 @@ jobs:
uses: bpicode/github-action-fpm@v0.9.2
with:
fpm_args: '.'
- fpm_opts: "-t rpm -v ${{ env.VERSION }} -C ./build --depends snappy ${{ env.FPM_OPTS }}"
+ fpm_opts: "-t rpm -v ${{ env.VERSION }} -C ./build/release ${{ env.FPM_OPTS }}"
- name: Release
uses: softprops/action-gh-release@v1