Merge pull request #48 from rizinorg/meson-0.62.2 #180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
rizin_ref: | |
required: false | |
type: string | |
default: 'dev' | |
jobs: | |
pypa-wheels: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2019, macos-12] | |
steps: | |
- name: Checkout rz-bindgen | |
uses: actions/checkout@v3 | |
- name: Checkout rizin | |
uses: actions/checkout@v3 | |
with: | |
repository: rizinorg/rizin | |
path: rizin | |
ref: ${{ inputs.rizin_ref }} | |
- name: Build rz-bindgen | |
uses: pypa/[email protected] | |
- name: Upload sdist | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sdist | |
path: dist/*.tar.gz | |
- name: Upload wheels | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: wheelhouse/*.whl | |
ubuntu-default-llvm: | |
runs-on: ubuntu-22.04 | |
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 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt-get --assume-yes install cmake swig pkg-config clang libclang-dev llvm 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 |