Skip to content

Add DS-Kernels release flow #8

Add DS-Kernels release flow

Add DS-Kernels release flow #8

Workflow file for this run

name: build
on:
pull_request:
jobs:
build:
runs-on: [self-hosted, cpu]
steps:
- uses: actions/checkout@v3
- name: environment
run: |
which python
python --version
nvcc --version
python -c "import torch; print('torch:', torch.__version__, torch)"
python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
- name: build
run: |
pwd
ls -al
git submodule update --init --recursive
ts=$(date +%s)
DS_KERNELS_BUILD_STRING=".dev${ts}" CUDA_ARCH_LIST="80;86;89;90" python setup.py bdist_wheel
fname=$(ls dist)
nname=$(echo $fname | sed 's/cp[0-9]\+-cp[0-9]\+/py3-none/' | sed 's/linux/manylinux1/')
mv "dist/$fname" "dist/$nname"