Compare commits

5 changed files with 44 additions and 37 deletions

No files matched your search

+15 -7
View File
@@ -1,13 +1,13 @@
name: run-rz-bindgen
on:
push:
paths:
- 'src/**.py'
- 'src/**.pyi'
- 'src/**.i'
- 'meson.build'
- 'meson_options.txt'
workflow_dispatch:
workflow_call:
inputs:
rizin_ref:
required: false
type: string
default: 'dev'
jobs:
run-bindgen:
@@ -28,11 +28,19 @@ jobs:
with:
repository: rizinorg/rizin
path: rizin
ref: ${{ inputs.rizin_ref }}
- name: Run rz-bindgen
uses: pypa/[email protected]
- name: Upload artifacts
- 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
+18 -27
View File
@@ -2,37 +2,23 @@ name: release-rz-bindgen
on:
push:
tags:
- v*
- rizin-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]
extract-rizin-version:
runs-on: ubuntu-latest
outputs:
rizin_version: ${{ steps.extract_version.outputs.result }}
steps:
- name: Checkout rz-bindgen
uses: actions/checkout@v3
- id: extract_version
run: echo "result=$(echo ${{ github.ref }} | cut -d'_' -f1 | cut -d'-' -f2-)" >> "$GITHUB_OUTPUT"
- 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
run-bindgen:
uses: ./.github/workflows/ci.yml
needs: [extract-rizin-version]
with:
rizin_ref: ${{ needs.extract-rizin-version.outputs.rizin_version }}
publish-pypi:
name: Publish PyPi
@@ -42,7 +28,12 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifact
name: wheels
path: dist
- name: Download sdist
uses: actions/download-artifact@v3
with:
name: sdist
path: dist
- name: Publish wheels
uses: pypa/[email protected]
+7 -1
View File
@@ -4,7 +4,7 @@
set -ex
# Install deps
pip3 install meson ninja meson-python
pip3 install meson ninja meson-python build
if command -v apt; then
apt update && apt install --assume-yes libclang-7-dev clang-7 llvm-7
@@ -22,3 +22,9 @@ fi
meson install -C build
popd
if command -v apt; then
if [ ! -e dist/*.tar.gz ] ; then
python3 -m build --sdist
fi
fi
+1 -1
View File
@@ -1,5 +1,5 @@
project('rz-bindgen', 'c', 'cpp',
version: 'v0.5.0dev',
version: '0.5.1',
license: 'LGPL3',
meson_version: '>=0.53.0',
default_options: ['python.install_env=auto'])
+3 -1
View File
@@ -18,6 +18,8 @@ archs = ["AMD64"]
[project]
name = "rz-bindings"
version = "0.5.0"
dynamic = [
'version',
]
requires-python = ">=3.8"
readme = "README.md"