Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WIP CI for wheel build #10

WIP CI for wheel build

WIP CI for wheel build #10

Workflow file for this run

name: Build Wheel
on:
push:
branches: [ wheel-build ]
release:
types: [ published ]
branches: [ master ]
workflow_dispatch:
jobs:
build-cuda:
runs-on: ubuntu-latest
env:
TORCH_CUDA_ARCH_LIST: "8.6 8.7 9.0+PTX"
FORCE_CUDA: 1
SAM2_BUILD_ALLOW_ERRORS: 0
SAM2_BUILD_CUDA: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
apt-get install -y git build-essential cuda-compiler-12-6 cuda-cudart-dev-12-6
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install PyTorch
run: |
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
- name: Check CUDA version
run: |
nvcc --version
- name: Build package
run: |
python -m build --wheel
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: built-wheel
path: dist/*.whl