-
Notifications
You must be signed in to change notification settings - Fork 73
101 lines (96 loc) · 2.91 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: build-wheels
on:
push:
branches:
- 'stable'
pull_request:
branches:
- 'stable'
env:
CIBW_ARCHS: auto64
CIBW_BUILD_VERBOSITY: 2
jobs:
build-linux:
name: ubuntu-22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
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:
strategy:
fail-fast: false
matrix:
os: [ 13, 14 ]
name: macos-${{ matrix.os }}
runs-on: macos-${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup LLVM"
run: |
brew install --overwrite [email protected]
brew install --overwrite llvm molten-vk
- name: "Build Wheels"
run: |
if [ "${{ matrix.os }}" = "13" ]; then
export PATH="/usr/local/opt/llvm/bin:$PATH"
else
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
fi
export CC=clang
export CXX=clang++
python3 -m pip install -U cibuildwheel --break-system-packages
for dep_target in {13..${{ matrix.os }}}; do
export MACOSX_DEPLOYMENT_TARGET=${dep_target}.0
python3 -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@v4
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.11.1
- 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