Skip to content

Commit

Permalink
Upgrade to LLVM v14.0.1.
Browse files Browse the repository at this point in the history
Generate and upload wheels as well.

Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow committed Apr 23, 2022
1 parent 4007153 commit d524bc4
Show file tree
Hide file tree
Showing 11 changed files with 110 additions and 11 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/libclang-alpine-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-alpine-amd64
on: [push, pull_request]

env:
LLVM_VER: 13.0.0
LLVM_VER: 14.0.1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -15,6 +15,12 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install wheel dependencies
run: |
pip3 install wheel
- name: get llvm-project
run: |
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VER/llvm-project-$LLVM_VER.src.tar.xz
Expand Down Expand Up @@ -45,3 +51,11 @@ jobs:
with:
name: libclang.so.${{env.LLVM_VER}}.alpine-amd64.tar.gz
path: llvm-project-${{env.LLVM_VER}}/build/lib/libclang.so.${{env.LLVM_VER}}.alpine-amd64.tar.gz
- name: generate wheel package
run: |
cp llvm-project-$LLVM_VER/build/lib/libclang.so native/
python3 setup.py bdist_wheel --universal --plat-name=musllinux_1_2_x86_64
- uses: actions/upload-artifact@v2
with:
name: wheel-${{env.LLVM_VER}}-musllinux_1_2_x86_64
path: dist/*.whl
16 changes: 15 additions & 1 deletion .github/workflows/libclang-linux-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-linux-aarch64
on: [push, pull_request]

env:
LLVM_VER: 13.0.0
LLVM_VER: 14.0.1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -15,6 +15,12 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install wheel dependencies
run: |
pip3 install wheel
- name: get llvm-project
run: |
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VER/llvm-project-$LLVM_VER.src.tar.xz
Expand Down Expand Up @@ -80,3 +86,11 @@ jobs:
with:
name: libclang.so.${{env.LLVM_VER}}.linux-aarch64.tar.gz
path: llvm-project-${{env.LLVM_VER}}/build/lib/libclang.so.${{env.LLVM_VER}}.linux-aarch64.tar.gz
- name: generate wheel package
run: |
cp llvm-project-$LLVM_VER/build/lib/libclang.so native/
python3 setup.py bdist_wheel --universal --plat-name=manylinux2014_aarch64
- uses: actions/upload-artifact@v2
with:
name: wheel-${{env.LLVM_VER}}-manylinux2014_aarch64
path: dist/*.whl
16 changes: 15 additions & 1 deletion .github/workflows/libclang-linux-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-linux-amd64
on: [push, pull_request]

env:
LLVM_VER: 13.0.0
LLVM_VER: 14.0.1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -15,6 +15,12 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install wheel dependencies
run: |
pip3 install wheel
- name: get llvm-project
run: |
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VER/llvm-project-$LLVM_VER.src.tar.xz
Expand Down Expand Up @@ -52,3 +58,11 @@ jobs:
with:
name: libclang.so.${{env.LLVM_VER}}.linux-amd64.tar.gz
path: llvm-project-${{env.LLVM_VER}}/build/lib/libclang.so.${{env.LLVM_VER}}.linux-amd64.tar.gz
- name: generate wheel package
run: |
cp llvm-project-$LLVM_VER/build/lib/libclang.so native/
python3 setup.py bdist_wheel --universal --plat-name=manylinux1_x86_64
- uses: actions/upload-artifact@v2
with:
name: wheel-${{env.LLVM_VER}}-manylinux1_x86_64
path: dist/*.whl
16 changes: 15 additions & 1 deletion .github/workflows/libclang-linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-linux-arm
on: [push, pull_request]

env:
LLVM_VER: 13.0.0
LLVM_VER: 14.0.1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -15,6 +15,12 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install wheel dependencies
run: |
pip3 install wheel
- name: get llvm-project
run: |
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VER/llvm-project-$LLVM_VER.src.tar.xz
Expand Down Expand Up @@ -82,3 +88,11 @@ jobs:
with:
name: libclang.so.${{env.LLVM_VER}}.linux-arm.tar.gz
path: llvm-project-${{env.LLVM_VER}}/build/lib/libclang.so.${{env.LLVM_VER}}.linux-arm.tar.gz
- name: generate wheel package
run: |
cp llvm-project-$LLVM_VER/build/lib/libclang.so native/
python3 setup.py bdist_wheel --universal --plat-name=manylinux2014_armv7l
- uses: actions/upload-artifact@v2
with:
name: wheel-${{env.LLVM_VER}}-manylinux2014_armv7l
path: dist/*.whl
16 changes: 15 additions & 1 deletion .github/workflows/libclang-macosx-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-macosx-amd64
on: [push, pull_request]

env:
LLVM_VER: 13.0.0
LLVM_VER: 14.0.1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -15,6 +15,12 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install wheel dependencies
run: |
pip3 install wheel
- name: install gnu-tar
run: |
brew install gnu-tar
Expand Down Expand Up @@ -56,3 +62,11 @@ jobs:
with:
name: libclang.dylib.${{env.LLVM_VER}}.macosx-amd64.tar.gz
path: llvm-project-${{env.LLVM_VER}}/build/lib/libclang.dylib.${{env.LLVM_VER}}.macosx-amd64.tar.gz
- name: generate wheel package
run: |
cp llvm-project-$LLVM_VER/build/lib/libclang.so native/
python3 setup.py bdist_wheel --universal --plat-name=macosx_10_9_x86_64
- uses: actions/upload-artifact@v2
with:
name: wheel-${{env.LLVM_VER}}-macosx_10_9_x86_64
path: dist/*.whl
16 changes: 15 additions & 1 deletion .github/workflows/libclang-windows-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-windows-aarch64
on: [push, pull_request]

env:
LLVM_VER: 13.0.0
LLVM_VER: 14.0.1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -15,6 +15,12 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install wheel dependencies
run: |
pip3 install wheel
- name: get llvm-project
run: |
choco install wget git
Expand Down Expand Up @@ -68,3 +74,11 @@ jobs:
with:
name: libclang.dll.${{env.LLVM_VER}}.windows-aarch64.tar.gz
path: llvm-project-${{env.LLVM_VER}}\build\MinSizeRel\bin\libclang.dll.${{env.LLVM_VER}}.windows-aarch64.tar.gz
- name: generate wheel package
run: |
cp llvm-project-$LLVM_VER/build/lib/libclang.so native/
python3 setup.py bdist_wheel --universal --plat-name=win_arm64
- uses: actions/upload-artifact@v2
with:
name: wheel-${{env.LLVM_VER}}-win_arm64
path: dist/*.whl
16 changes: 15 additions & 1 deletion .github/workflows/libclang-windows-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: libclang-windows-amd64
on: [push, pull_request]

env:
LLVM_VER: 13.0.0
LLVM_VER: 14.0.1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand All @@ -15,6 +15,12 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install wheel dependencies
run: |
pip3 install wheel
- name: get llvm-project
run: |
choco install wget git
Expand All @@ -40,3 +46,11 @@ jobs:
with:
name: libclang.dll.${{env.LLVM_VER}}.windows-amd64.tar.gz
path: llvm-project-${{env.LLVM_VER}}\build\MinSizeRel\bin\libclang.dll.${{env.LLVM_VER}}.windows-amd64.tar.gz
- name: generate wheel package
run: |
cp llvm-project-$LLVM_VER/build/lib/libclang.so native/
python3 setup.py bdist_wheel --universal --plat-name=win_amd64
- uses: actions/upload-artifact@v2
with:
name: wheel-${{env.LLVM_VER}}-win_amd64
path: dist/*.whl
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
# built documents.
#
# The short X.Y version.
version = '13.0.0'
version = '14.0.1'
# The full version, including alpha/beta/rc tags.
release = '13.0.0'
release = '14.0.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:Date: 2021-04-17
:Version: 13.0.0
:Version: 14.0.1
:Authors: - The LLVM Team

.. meta::
Expand Down
1 change: 1 addition & 0 deletions python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,7 @@ def __repr__(self):
TypeKind.OBJCSEL = TypeKind(29)
TypeKind.FLOAT128 = TypeKind(30)
TypeKind.HALF = TypeKind(31)
TypeKind.IBM128 = TypeKind(40)
TypeKind.COMPLEX = TypeKind(100)
TypeKind.POINTER = TypeKind(101)
TypeKind.BLOCKPOINTER = TypeKind(102)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def run(self):

setup(
name='libclang',
version='13.0.0',
version='14.0.1',
description='Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit d524bc4

Please sign in to comment.