From 335427420bfea2bf9c6678bd6b4e9c2e2bfaa813 Mon Sep 17 00:00:00 2001 From: robbins <43660564+Daniel-Robbins@users.noreply.github.com> Date: Wed, 20 Dec 2023 11:24:08 +0800 Subject: [PATCH] Fix linux aarch64 libchdb.so upload (#157) --- .github/workflows/build_arm_wheels.yml | 13 +++++++++++++ .github/workflows/build_wheels.yml | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_arm_wheels.yml b/.github/workflows/build_arm_wheels.yml index 5c14b0aaa5f..fcb7d294580 100644 --- a/.github/workflows/build_arm_wheels.yml +++ b/.github/workflows/build_arm_wheels.yml @@ -115,6 +115,19 @@ jobs: ls -lh dist shell: bash continue-on-error: false + - name: Upload wheels to release + if: startsWith(github.ref, 'refs/tags/v') + run: | + gh release upload ${{ github.ref_name }} dist/*.whl --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload libchdb.so to release + if: startsWith(github.ref, 'refs/tags/v') && matrix.python-version == '3.12' + run: | + tar -czvf linux-aarch64-libchdb.tar.gz libchdb.so + gh release upload ${{ github.ref_name }} linux-aarch64-libchdb.tar.gz --clobber + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3 with: path: ./dist/*.whl diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index f733d9fdc42..ae272979474 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -142,8 +142,8 @@ jobs: - name: Upload libchdb.so to release if: startsWith(github.ref, 'refs/tags/v') && matrix.python-version == '3.12' run: | - tar -czvf linux-libchdb.tar.gz libchdb.so - gh release upload ${{ github.ref_name }} linux-libchdb.tar.gz --clobber + tar -czvf linux-x86_64-libchdb.tar.gz libchdb.so + gh release upload ${{ github.ref_name }} linux-x86_64-libchdb.tar.gz --clobber env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3 @@ -280,8 +280,8 @@ jobs: - name: Upload libchdb.so to release if: startsWith(github.ref, 'refs/tags/v') && matrix.python-version == '3.12' run: | - tar -czvf macos-libchdb.tar.gz libchdb.so - gh release upload ${{ github.ref_name }} macos-libchdb.tar.gz --clobber + tar -czvf macos-x86_64-libchdb.tar.gz libchdb.so + gh release upload ${{ github.ref_name }} macos-x86_64-libchdb.tar.gz --clobber env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3