-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.56 KB
/
publish.yml
File metadata and controls
56 lines (48 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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 ..
cd ./capstone/bindings/python
uv run --with cibuildwheel==3.3.1 cibuildwheel --output-dir dist
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 ..
cd ./capstone/bindings/python
uv build --no-binary
uv publish