forked from xmrig/xmrig-cuda
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d80c6c
commit 06c7775
Showing
2 changed files
with
7 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -200,15 +171,6 @@ jobs: | |
with: | ||
name: cuda10_1 | ||
|
||
- name: Upload Windows CUDA 12.3 build release asset | ||
uses: actions/[email protected] | ||
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/[email protected] | ||
env: | ||
|
This file contains 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