Skip to content

Install cuda

Install cuda #1

Workflow file for this run

# Taken from osqp-python
name: Build CUDA Linux
on:
# Triggers the workflow on push or pull request events
push:
branches:
- "*"
- "*/*"
- "**"
pull_request:
branches: [main]
jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@master
- name: Install CUDA Toolkit (if using GitHub-hosted runner)
# Use a specific version, e.g., '11.8'
uses: Jimver/cuda-toolkit@v0.2.11
with:
cuda: '12.1.0'
- name: Build wheels
uses: pypa/cibuildwheel@v2.23
with:
package-dir: backend/cuda
config-file: backend/cuda/cibuildwheel.toml
output-dir: wheelhouse
- name: Upload artifacts to github
uses: actions/upload-artifact@v4
with:
name: wheels-cuda-${{ matrix.os }}
path: ./wheelhouse