-
Notifications
You must be signed in to change notification settings - Fork 73
87 lines (82 loc) · 2.57 KB
/
build-wheels.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: build-wheels
on: [ push, pull_request ]
env:
CIBW_ARCHS: auto64
CIBW_BUILD_VERBOSITY: 2
jobs:
build-linux:
name: ubuntu-22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: "Build Wheels"
env:
CIBW_BUILD: \*manylinux\*
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_BEFORE_ALL: "./scripts/cibw_install_deps.sh"
CIBW_REPAIR_WHEEL_COMMAND: "auditwheel show {wheel} && auditwheel repair -w {dest_dir} {wheel} --exclude libcuda.so.1 --exclude libvulkan.so.1"
run: |
python -m pip install -U cibuildwheel
python -m cibuildwheel --output-dir wheelhouse
- name: "Upload Wheels"
uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build-macos:
name: macos-13
runs-on: macos-13
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: "Setup LLVM"
run: |
brew install --overwrite [email protected]
brew install --overwrite llvm molten-vk
- name: "Build Wheels"
run: |
export PATH="/usr/local/opt/llvm/bin:$PATH"
export CC=clang
export CXX=clang++
python -m pip install -U cibuildwheel
for dep_target in 13.0; do
export MACOSX_DEPLOYMENT_TARGET=${dep_target}
python -m cibuildwheel --output-dir wheelhouse
done
- name: "Upload Wheels"
uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build-windows:
name: windows-2022
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: "Setup Vulkan SDK"
uses: humbletim/[email protected]
with:
vulkan-query-version: 1.3.204.0
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: "Setup CUDA"
uses: Jimver/[email protected]
with:
cuda: 12.1.0
- name: "Setup Ninja"
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.2
- name: "Build Wheels"
shell: cmd
run: |
python -m pip install -U cibuildwheel
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
python -m cibuildwheel --output-dir wheelhouse
- name: "Upload Wheels"
uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl