mirror of
https://github.com/rizinorg/rz-bindgen.git
synced 2026-11-08 17:47:27 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7211a9edd9 | ||
|
|
08efc07dd5 | ||
|
|
d04278407f | ||
|
|
9b40b7cb78 |
No files matched your search
@@ -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 }}
|
||||
@@ -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 }}
|
||||
@@ -4,4 +4,5 @@ disable=too-many-instance-attributes,
|
||||
too-many-branches,
|
||||
too-many-return-statements,
|
||||
too-many-locals,
|
||||
fixme
|
||||
broad-exception-raised,
|
||||
fixme
|
||||
@@ -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:
|
||||
|
||||
@@ -12,6 +12,7 @@ from clang.cindex import TranslationUnit, Cursor, CursorKind
|
||||
|
||||
from cparser_types import CType, wrap_type
|
||||
|
||||
|
||||
### Cursor wrappers ###
|
||||
class AttrCursor:
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user