Skip to content

Commit

Permalink
Fix linux aarch64 libchdb.so upload (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Robbins authored Dec 20, 2023
1 parent 17aff91 commit 3354274
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_arm_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3354274

Please sign in to comment.