Skip to content

Commit

Permalink
ci(install_requirements): fix cuda installation getting stuck
Browse files Browse the repository at this point in the history
See Jimver/cuda-toolkit#382 for more information
  • Loading branch information
Silverlan committed Mar 1, 2025
1 parent 1ad681c commit 30d8cf2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion github_actions/install_requirements/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,25 @@ runs:
sudo update-alternatives --set g++ /usr/bin/g++-11
# For Cycles
- name: Install Cuda
- name: Install Cuda (Linux)
if: ${{ runner.os == 'Linux' }}
uses: Jimver/[email protected]
if: ${{ inputs.with_cuda == '1' }}
with:
cuda: '12.2.0'
# TODO: Install OptiX

- name: Clone setup_cuda repository (Windows)
if: ${{ runner.os != 'Linux' }}
run: git clone https://github.com/Silverlan/setup_cuda.git

- name: Install Cuda (Windows)
if: ${{ runner.os != 'Linux' }}
shell: pwsh
run: setup_cuda/setup_cuda.ps1
env:
INPUT_CUDA_VERSION: "12.5.0"

- name: Set PIP_BREAK_SYSTEM_PACKAGES env variable
shell: bash
run: echo "PIP_BREAK_SYSTEM_PACKAGES=1" >> $GITHUB_ENV
Expand Down

0 comments on commit 30d8cf2

Please sign in to comment.