You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(install_cuda): add CI mode with automatic disk cleanup for GitHub Actions
Add CI_MODE environment variable to enable CI-specific optimizations:
## New Features
- CI_MODE=1 enables automatic disk cleanup before installation
- Removes common pre-installed software on GitHub Actions runners:
- .NET SDK, Android SDK, GHC, CodeQL, Boost, Swift, GraalVM, etc.
- Cleans apt cache and Docker images when available
- Displays disk space statistics before and after cleanup:
- Total disk size, used space, available space, usage percentage
- Calculates and shows freed disk space
## New Environment Variables
- CI_MODE: Set to 1 to enable CI optimizations (default: 0)
- REQUIRED_DISK_SPACE_GB: Minimum required disk space in GB (default: 15)
## Usage
```bash
# GitHub Actions / CI environment
CI_MODE=1 CUDA_INSTALL_PREFIX=/tmp/cuda ./install_cuda.sh 12.8
# Local installation (unchanged behavior)
CUDA_INSTALL_PREFIX=~/opt ./install_cuda.sh 12.8
```
This should resolve 'No space left on device' errors on GitHub Actions runners
by freeing approximately 30-50GB of disk space before CUDA installation.
0 commit comments