Skip to content

Commit

Permalink
Different workflow action image
Browse files Browse the repository at this point in the history
  • Loading branch information
GlockPL committed Jun 5, 2024
1 parent 4c49500 commit c9db29f
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ jobs:
- os: windows-latest
cuda: '12.1.1'
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up CUDA
if: matrix.os == 'ubuntu-latest'
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda
shell: bash

- name: Set up CUDA on Windows
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest https://raw.githubusercontent.com/KonduitAI/cuda-install/master/.github/actions/install-cuda-windows/install_cuda_windows.ps1 -OutFile install_cuda_windows.ps1 | Out-Null
.\install_cuda_windows.ps1
echo "CUDA_PATH=$($CUDA_PATH))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "$($CUDA_PATH))\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
shell: powershell

- name: Add CUDA to PATH on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: echo "/usr/local/cuda-${{ matrix.cuda }}/bin" >> $GITHUB_PATH
shell: bash
- name: CUDA image for actions
uses: Jimver/[email protected]

# - name: Set up CUDA
# if: matrix.os == 'ubuntu-latest'
# run: |
# wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
# sudo dpkg -i cuda-keyring_1.0-1_all.deb
# sudo apt-get update
# sudo apt-get -y install cuda
# shell: bash

# - name: Set up CUDA on Windows
# if: matrix.os == 'windows-latest'
# run: |
# Invoke-WebRequest https://raw.githubusercontent.com/KonduitAI/cuda-install/master/.github/actions/install-cuda-windows/install_cuda_windows.ps1 -OutFile install_cuda_windows.ps1 | Out-Null
# .\install_cuda_windows.ps1
# echo "CUDA_PATH=$($CUDA_PATH))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# echo "$($CUDA_PATH))\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# shell: powershell

# - name: Add CUDA to PATH on Ubuntu
# if: matrix.os == 'ubuntu-latest'
# run: echo "/usr/local/cuda-${{ matrix.cuda }}/bin" >> $GITHUB_PATH
# shell: bash

- name: Configure CMake
run: mkdir build && cd build && cmake ..
Expand Down

0 comments on commit c9db29f

Please sign in to comment.