Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build job ubuntu-llvm-15 #44

Merged
merged 4 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,48 @@ jobs:
with:
name: wheels
path: wheelhouse/*.whl

ubuntu-llvm-15:
runs-on: ubuntu-22.04
env:
CC: clang-15
CXX: clang++-15

steps:
- name: Checkout rz-bindgen
uses: actions/checkout@v3
with:
path: rz-bindgen

- name: Checkout rizin
uses: actions/checkout@v3
with:
repository: rizinorg/rizin
path: rizin
fetch-depth: 2

- name: Install dependencies
run: |
sudo apt update
sudo apt-get --assume-yes install cmake swig pkg-config clang-15 libclang-15-dev llvm-15 wget unzip python3-wheel python3-setuptools build-essential python3-pip && sudo pip3 install meson ninja

- name: Install rizin
run: |
export PATH=$PATH:/usr/local/bin
meson setup --prefix=/usr --buildtype=release build && ninja -C build && sudo ninja -C build install
working-directory: rizin

- name: Build rz-bindgen
run: |
meson setup --prefix=/usr -Dplugin=enabled build
meson compile -C build
sudo meson install -C build
working-directory: rz-bindgen

- name: Test python lang plugin
run: rizin -qc "Ll" | grep "Python SWIG"

- name: Test rizin.py
run: |
echo "import rizin" > testimport.py
python3 testimport.py
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ target_sphinx = targets.contains('sphinx')
doxygen_path = get_option('doxygen_path')

if clang_path == ''
llvm_config = find_program('llvm-config', 'llvm-config-7', required: false)
llvm_config = find_program('llvm-config-15', 'llvm-config', 'llvm-config-7', required: false)
if llvm_config.found()
clang_path = run_command(llvm_config, '--libdir', check: true).stdout().strip()
elif build_machine.system() == 'darwin'
Expand All @@ -46,7 +46,7 @@ if rizin_include_path == ''
endif

if clang_args == ''
clang = find_program('clang', 'clang-7', required: false)
clang = find_program('clang-15', 'clang', 'clang-7', required: false)
if clang.found()
clang_args += ' -resource-dir='
clang_args += '"' + run_command(clang, '-print-resource-dir', check: true).stdout().strip() + '"'
Expand Down
Loading