|
39 | 39 | if: matrix.build-type == 'framework-dependent' |
40 | 40 | run: dotnet publish GDeflateGUI/GDeflateGUI.csproj --configuration Release --output ./publish-gui --no-build --self-contained false |
41 | 41 |
|
42 | | - - name: Download and copy dependencies |
43 | | - run: | |
44 | | - # Download nvCOMP library for CUDA 12 |
45 | | - $nvcompUrl = "https://developer.nvidia.com/downloads/compute/nvcompdx/redist/nvcompdx/cuda12/nvidia-mathdx-25.06.1-cuda12.zip" |
46 | | - $nvcompZip = "nvcomp.zip" |
47 | | - Invoke-WebRequest -Uri $nvcompUrl -OutFile $nvcompZip |
48 | | -
|
49 | | - # Extract the contents |
50 | | - Expand-Archive -Path $nvcompZip -DestinationPath ./nvcomp_temp |
51 | | -
|
52 | | - # Copy required DLLs to the publish directory |
53 | | - # Adjust the source path based on the actual structure of the zip file |
54 | | - Copy-Item -Path ./nvcomp_temp/bin/nvcomp.dll -Destination ./publish-gui/ |
55 | | - Copy-Item -Path ./nvcomp_temp/bin/cudart64_12.dll -Destination ./publish-gui/ |
56 | | -
|
57 | | - # Clean up downloaded files |
58 | | - Remove-Item $nvcompZip |
59 | | - Remove-Item -Recurse -Force ./nvcomp_temp |
60 | | - shell: pwsh |
61 | | - |
62 | 42 | - name: Create build info |
63 | 43 | run: | |
64 | 44 | echo "GDeflate GUI Application - ${{ matrix.build-type }}" > ./publish-gui/BUILD_INFO.txt |
@@ -114,27 +94,6 @@ jobs: |
114 | 94 | - name: Publish console application (Self-contained) |
115 | 95 | run: dotnet publish GDeflateConsole/GDeflateConsole.csproj --configuration Release --output ./publish-console --self-contained true --runtime ${{ matrix.runtime }} |
116 | 96 |
|
117 | | - - name: Download and copy dependencies (Windows only) |
118 | | - if: matrix.os == 'windows-latest' |
119 | | - run: | |
120 | | - # Download nvCOMP library for CUDA 12 |
121 | | - $nvcompUrl = "https://developer.nvidia.com/downloads/compute/nvcompdx/redist/nvcompdx/cuda12/nvidia-mathdx-25.06.1-cuda12.zip" |
122 | | - $nvcompZip = "nvcomp.zip" |
123 | | - Invoke-WebRequest -Uri $nvcompUrl -OutFile $nvcompZip |
124 | | -
|
125 | | - # Extract the contents |
126 | | - Expand-Archive -Path $nvcompZip -DestinationPath ./nvcomp_temp |
127 | | -
|
128 | | - # Copy required DLLs to the publish directory |
129 | | - # Adjust the source path based on the actual structure of the zip file |
130 | | - Copy-Item -Path ./nvcomp_temp/bin/nvcomp.dll -Destination ./publish-console/ |
131 | | - Copy-Item -Path ./nvcomp_temp/bin/cudart64_12.dll -Destination ./publish-console/ |
132 | | -
|
133 | | - # Clean up downloaded files |
134 | | - Remove-Item $nvcompZip |
135 | | - Remove-Item -Recurse -Force ./nvcomp_temp |
136 | | - shell: pwsh |
137 | | - |
138 | 97 | - name: Create build info (Windows) |
139 | 98 | if: matrix.os == 'windows-latest' |
140 | 99 | run: | |
|
0 commit comments