4 Commits
5 changed files with 61 additions and 18 deletions

No files matched your search

+1 -17
View File
@@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-latest]
os: [ubuntu-latest, windows-2019, macos-latest]
steps:
- name: Checkout rz-bindgen
@@ -36,19 +36,3 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
publish-pypi:
name: Publish PyPi
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [run-bindgen]
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Publish wheels
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_TOKEN }}
+50
View File
@@ -0,0 +1,50 @@
name: release-rz-bindgen
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
run-bindgen:
name: Run bindgen
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2019, macos-latest]
steps:
- name: Checkout rz-bindgen
uses: actions/checkout@v3
- name: Checkout rizin
uses: actions/checkout@v3
with:
repository: rizinorg/rizin
path: rizin
ref: ${{ github.ref }}
- name: Run rz-bindgen
uses: pypa/[email protected]
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
publish-pypi:
name: Publish PyPi
runs-on: ubuntu-latest
needs: [run-bindgen]
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Publish wheels
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_TOKEN }}
+2 -1
View File
@@ -4,4 +4,5 @@ disable=too-many-instance-attributes,
too-many-branches,
too-many-return-statements,
too-many-locals,
fixme
broad-exception-raised,
fixme
+7
View File
@@ -169,6 +169,13 @@ def bind_analysis(analysis_h: Header) -> None:
Class(analysis_h, typedef="RzAnalysisEsil")
Class(analysis_h, typedef="RzAnalysisPlugin")
Class(
analysis_h,
typedef="RzAnalysisXRef",
rename_fields={"from": "from_addr", "to": "to_addr"},
)
Enum(analysis_h, typedef="RzAnalysisXRefType")
@threaded_header("rz_asm.h")
def bind_asm(asm_h: Header) -> None:
+1
View File
@@ -12,6 +12,7 @@ from clang.cindex import TranslationUnit, Cursor, CursorKind
from cparser_types import CType, wrap_type
### Cursor wrappers ###
class AttrCursor:
"""