Skip to content

Commit ea1e5df

Browse files
committed
add zipping task
1 parent 24dc9d0 commit ea1e5df

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ jobs:
206206
Copy-Item -Path "${{ steps.strings-windows.outputs.build-output-dir }}\*pccl.*" -Destination artifacts\lib
207207
Copy-Item -Path ".\include\*.h" -Destination artifacts\include
208208
209+
- name: Zip artifacts (Unix)
210+
if: runner.os != 'Windows'
211+
run: |
212+
zip -r artifacts/libpccl.zip artifacts/lib artifacts/include
213+
214+
- name: Zip artifacts (Windows)
215+
if: runner.os == 'Windows'
216+
shell: powershell
217+
run: |
218+
Compress-Archive -Path artifacts\lib, artifacts\include -DestinationPath artifacts\libpccl.zip
219+
209220
- name: Create Python virtual environment (Unix)
210221
if: ${{ runner.os != 'Windows' && matrix.is_host_arch }}
211222
run: python3 -m venv ${{ github.workspace }}/venv
@@ -303,6 +314,6 @@ jobs:
303314
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
304315
with:
305316
upload_url: ${{ needs.create_release.outputs.upload_url }}
306-
asset_path: artifacts/*
317+
asset_path: artifacts/libpccl.zip
307318
asset_name: libpccl-${{ runner.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ matrix.is_host_arch && 'host' || 'cross' }}.zip
308319
asset_content_type: application/zip

0 commit comments

Comments
 (0)