File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -234,12 +234,25 @@ jobs:
234
234
name : pypccl-${{ runner.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ github.run_id }}
235
235
path : ./python/framework/dist/pypccl-*.whl
236
236
237
- - name : Find Python wheel
237
+ - name : Find Python wheel (Unix)
238
+ if : runner.os != 'Windows'
238
239
id : find_wheel
240
+ shell : bash
241
+ run : |
242
+ for file in "${{ github.workspace }}/python/framework/dist/"*pccl*.whl; do
243
+ echo "wheel_path=$file" >> "$GITHUB_OUTPUT"
244
+ echo "wheel_name=${file##*/}" >> "$GITHUB_OUTPUT"
245
+ break
246
+ done
247
+
248
+ - name : Find Python wheel (Windows)
249
+ if : runner.os == 'Windows'
250
+ id : find_wheel
251
+ shell : powershell
239
252
run : |
240
- path=$(ls "${{ github.workspace }}/ python/ framework/ dist/" *pccl*.whl)
241
- echo "wheel_path=$path" >> "$ GITHUB_OUTPUT"
242
- echo "wheel_name=$(basename "$path" )" >> "$ GITHUB_OUTPUT"
253
+ $file = Get-ChildItem -Path "${{ github.workspace }}\ python\ framework\ dist" -Filter " *pccl*.whl" | Select-Object -First 1
254
+ echo "wheel_path=$($file.FullName)" | Out-File -FilePath $env: GITHUB_OUTPUT -Encoding utf8
255
+ echo "wheel_name=$($file.Name )" | Out-File -FilePath $env: GITHUB_OUTPUT -Encoding utf8
243
256
244
257
- name : Upload Release Asset
245
258
uses : actions/upload-release-asset@v1
You can’t perform that action at this time.
0 commit comments