fix ci #6
Workflow file for this run
This file contains hidden or 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: release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| jobs: | |
| wheels: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-15-intel, macos-latest ] | |
| timeout-minutes: 120 | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/capstone6pwndbg | |
| permissions: | |
| id-token: write # IMPORTANT: this permission is mandatory for trusted publishing on pypi | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install uv and setup the python version | |
| uses: astral-sh/setup-uv@v7 | |
| - name: build & publish | |
| run: | | |
| git submodule update --init --recursive | |
| cd ./capstone && git apply ../python-rename.patch && cd .. | |
| uv run --with cibuildwheel==3.3.1 cibuildwheel --output-dir dist ./capstone/bindings/python | |
| uv publish | |
| sdist: | |
| name: Build source distribution | |
| runs-on: ubuntu-24.04-arm | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/capstone6pwndbg | |
| permissions: | |
| id-token: write # IMPORTANT: this permission is mandatory for trusted publishing on pypi | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install uv and setup the python version | |
| uses: astral-sh/setup-uv@v7 | |
| - name: build & publish | |
| run: | | |
| git submodule update --init --recursive | |
| cd ./capstone && git apply ../python-rename.patch && cd .. | |
| uv build --out-dir dist --sdist ./capstone/bindings/python | |
| uv publish |