Skip to content

Commit 4f6ae66

Browse files
committed
* NEW Support to generate a release.
Signed-off-by: wangha <wanghamax@gmail.com>
1 parent 96c81b5 commit 4f6ae66

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/build.yaml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
build:
10+
build_upload:
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -21,28 +21,25 @@ jobs:
2121
2222
- name: Configure NanoSDK
2323
run: |
24-
pwd && ls
2524
git clone https://github.com/emqx/nanosdk.git
2625
cd nanosdk
27-
pwd && ls
2826
mkdir build && cd build
2927
cmake ..
3028
make -j2
29+
pwd && ls
3130
sudo make install
3231
cd ../../
3332
3433
- name: Configure Parquet
3534
run: |
36-
pwd && ls
3735
git clone https://github.com/apache/arrow.git
3836
cd arrow/cpp
3937
git checkout apache-arrow-14.0.2
40-
pwd && ls
4138
mkdir build && cd build
4239
cmake -DARROW_PARQUET=ON -DARROW_BUILD_SHARED=OFF -DARROW_WITH_BROTLI=OFF -DARROW_WITH_BZ2=OFF -DARROW_WITH_LZ4=OFF -DARROW_WITH_SNAPPY=OFF -DARROW_WITH_ZLIB=OFF -DARROW_WITH_ZSTD=ON -DARROW_USE_OPENSSL=ON -DPARQUET_REQUIRE_ENCRYPTION=ON ..
4340
make -j2
41+
pwd && ls
4442
sudo make install
45-
cd ../../..
4643
4744
- name: Build
4845
run: |
@@ -51,8 +48,30 @@ jobs:
5148
cd build
5249
cmake ..
5350
make -j2
51+
ldd ./parquet-tool
5452
5553
- name: Run tests
5654
run: |
5755
cd build
56+
mkdir testdir
5857
./test_parquet
58+
59+
- name: Prepare to release
60+
run: |
61+
mkdir release
62+
mkdir release/parquet-tool-x86
63+
mv build/parquet-tool release/parquet-tool-x86/
64+
mv nanosdk/build/libnng.* release/parquet-tool-x86/
65+
cd release
66+
tar -czf parquet-tool-x86.tar.gz parquet-tool-x86
67+
68+
- name: Create Release
69+
uses: softprops/action-gh-release@v2
70+
if: startsWith(github.ref, 'refs/tags/')
71+
with:
72+
prerelease: ${{ steps.prerelease.outputs.prerelease }}
73+
generate_release_notes: true
74+
token: ${{ github.token }}
75+
name: Parquet-Tool ${{ github.ref_name }} Released
76+
files: release/*.tar.gz
77+

0 commit comments

Comments
 (0)