Skip to content

Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next #2147

Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next

Merge branch 'next' of github.com:LuisaGroup/LuisaCompute into next #2147

Workflow file for this run

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