fix(install_cuda): use quiet mode for all wget downloads #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test CUDA Install Script | |
| on: | |
| push: | |
| paths: | |
| - "install_cuda.sh" | |
| - ".github/workflows/test_install_cuda.yml" | |
| pull_request: | |
| paths: | |
| - "install_cuda.sh" | |
| - ".github/workflows/test_install_cuda.yml" | |
| workflow_dispatch: | |
| jobs: | |
| test-install-cuda: | |
| runs-on: 'ubuntu-latest' | |
| timeout-minutes: 360 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| cuda_version: ["12.8", "13.0"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up test install prefix | |
| run: | | |
| mkdir -p /tmp/test-cuda-install | |
| echo "Created /tmp/test-cuda-install" | |
| - name: Make script executable | |
| run: chmod +x install_cuda.sh | |
| - name: Run install_cuda.sh (CUDA ${{ matrix.cuda_version }}) | |
| env: | |
| CUDA_INSTALL_PREFIX: /tmp/test-cuda-install | |
| CI_MODE: 1 | |
| SKIP_PRUNE: 1 | |
| MAKEFLAGS: -j4 | |
| NVCC_GENCODE: -gencode arch=compute_75,code=sm_75 | |
| INSTALL_NCCL: 0 | |
| run: | | |
| # Only test CUDA Toolkit installation, no GPU driver install (no root, no real GPU) | |
| # Use a supported version from the matrix | |
| # NCCL installation is disabled to avoid compilation errors in CI environment | |
| # CI_MODE=1 enables automatic disk cleanup on GitHub Actions runners | |
| bash install_cuda.sh ${{ matrix.cuda_version }} || (cat /tmp/${USER}/cuda_install/error.log || true; exit 1) | |
| - name: Check summary output | |
| run: | | |
| SUMMARY_FILE="/tmp/${USER}/cuda_install/script_completed_successfully" | |
| if [ ! -f "$SUMMARY_FILE" ]; then | |
| echo "Script did not complete successfully!" | |
| exit 1 | |
| fi | |
| echo "Install script ran to completion." | |
| - name: Show install log | |
| if: always() | |
| run: | | |
| cat /tmp/${USER}/cuda_install_debug.txt || cat /tmp/cuda_install_debug.txt || echo "No debug log found" |