This repository was archived by the owner on May 6, 2026. It is now read-only.
forked from benfred/py-cpp-demangle
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.52 KB
/
Copy pathcreate_wheels.yaml
File metadata and controls
64 lines (56 loc) · 1.52 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
57
58
59
60
61
62
63
64
name: Build
on:
workflow_dispatch:
push:
branches: [ master ]
tags:
- v*
pull_request:
branches: [ master ]
jobs:
build-wheels:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v3.0.0
env:
CIBW_BUILD: cp38-*
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: wheelhouse
test-wheels:
needs: [build-wheels]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
path: py_cpp_demangle_source
- uses: actions/download-artifact@v4
with:
name: wheels-${{ matrix.os }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install wheel
run: |
pip install --force-reinstall --no-deps --no-index --find-links . cpp-demangle
- name: Run unittests
run: |
python -m unittest discover py_cpp_demangle_source/tests