Skip to content

Commit

Permalink
Install python3-clang from apt
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 1, 2024
1 parent 2c02b52 commit 82af274
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,8 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true

- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v4
with:
path: llvm/lib/libclang.so*
key: llvm-17

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "17.0"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}

- name: Symlink libclang.so
run: sudo ln -s ./llvm/lib/libclang.so /usr/lib/x86_64-linux-gnu/libclang-17.so
- run: sudo apt-get install -y python3-clang

- name: Use Python 3.12
uses: actions/setup-python@v5
Expand Down
4 changes: 0 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,3 @@
# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration

todo_include_todos = True

if 'GITHUB_WORKSPACE' in os.environ:
from clang import cindex
cindex.Config.set_library_file(os.environ['GITHUB_WORKSPACE'] + os.sep + "/llvm/lib/libclang.so")

0 comments on commit 82af274

Please sign in to comment.