Skip to content

Commit

Permalink
Updated cuda install
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Feb 27, 2024
1 parent 0d80c6c commit 06c7775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 45 deletions.
40 changes: 1 addition & 39 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,6 @@ on:
name: Create release and build artifacts

jobs:
build_win_cuda12_3:
name: Windows CUDA 12.3
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Install CUDA
run: |
powershell -Command "Invoke-WebRequest https://developer.download.nvidia.com/compute/cuda/12.3.2/network_installers/cuda_12.3.2_windows_network.exe -OutFile .\cuda_setup.exe"
start /wait .\cuda_setup.exe -s
shell: cmd
- name: Build project on Windows
run: |
cmake . -G "Visual Studio 16 2019" -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3"
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin"
.\MSBuild.exe /p:Configuration=Release $Env:GITHUB_WORKSPACE\xmrig-cuda.sln || exit 1
cd $Env:GITHUB_WORKSPACE
copy Release\*.dll .
7z a -tzip -mx cuda12_3.zip *.dll
- name: Upload Windows build artifacts
uses: actions/upload-artifact@v1
with:
name: cuda12_3
path: cuda12_3.zip

build_win_cuda11_4:
name: Windows CUDA 11.4
runs-on: windows-2019
Expand Down Expand Up @@ -157,7 +132,7 @@ jobs:
path: cuda10_1.zip

deploy:
needs: [build_win_cuda12_3, build_win_cuda11_4, build_win_cuda11_3, build_win_cuda11_0, build_win_cuda10_2, build_win_cuda10_1]
needs: [build_win_cuda11_4, build_win_cuda11_3, build_win_cuda11_0, build_win_cuda10_2, build_win_cuda10_1]
name: Create release and upload artifacts
runs-on: ubuntu-2019
steps:
Expand All @@ -175,10 +150,6 @@ jobs:
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF:10}

- name: Download Windows CUDA 12.3 build artifacts
uses: actions/download-artifact@v1
with:
name: cuda12_3
- name: Download Windows CUDA 11.4 build artifacts
uses: actions/download-artifact@v1
with:
Expand All @@ -200,15 +171,6 @@ jobs:
with:
name: cuda10_1

- name: Upload Windows CUDA 12.3 build release asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: cuda12_3/cuda12_3.zip
asset_name: xmrig-cuda-${{steps.version.outputs.VERSION}}-cuda12_3-win64.zip
asset_content_type: application/zip
- name: Upload Windows CUDA 11.4 build release asset
uses: actions/upload-release-asset@v1.0.1
env:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ on: push
name: Test builds

jobs:
build_win_cuda12_3:
name: Windows CUDA 12.3
runs-on: windows-latest
build_win_cuda11_4:
name: Windows CUDA 11.4
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Install CUDA
run: |
powershell -Command "Invoke-WebRequest https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_546.12_windows.exe -OutFile .\cuda_setup.exe"
powershell -Command "Invoke-WebRequest https://developer.download.nvidia.com/compute/cuda/11.4.0/network_installers/cuda_11.4.0_win10_network.exe -OutFile .\cuda_setup.exe"
start /wait .\cuda_setup.exe -s
shell: cmd
- name: Build project on Windows
run: |
cmake . -G "Visual Studio 16 2019" -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.3"
cd "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin"
cmake . -G "Visual Studio 16 2019" -DCUDA_TOOLKIT_ROOT_DIR="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.4"
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin"
.\MSBuild.exe /p:Configuration=Release $Env:GITHUB_WORKSPACE\xmrig-cuda.sln || exit 1

0 comments on commit 06c7775

Please sign in to comment.