Skip to content

Commit baaf02f

Browse files
committed
small changes to libpccl release packaging
1 parent ea1e5df commit baaf02f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
generator: Ninja
4343
build_type: Release
4444
pccl_build_cuda_support: OFF
45+
arch: x64
4546

4647
- runs-on: [ self-hosted, Linux, X64, cuda ]
4748
os: ubuntu-latest
@@ -51,6 +52,7 @@ jobs:
5152
generator: Ninja
5253
build_type: Release
5354
pccl_build_cuda_support: ON
55+
arch: x64
5456

5557
# Windows configurations using self-hosted runners
5658
# x86_64, no cuda
@@ -62,6 +64,7 @@ jobs:
6264
generator: Ninja
6365
build_type: Release
6466
pccl_build_cuda_support: OFF
67+
arch: x64
6568

6669
# x86_64 with cuda
6770
- runs-on: [ self-hosted, Windows, X64, cuda ]
@@ -72,6 +75,7 @@ jobs:
7275
generator: Ninja
7376
build_type: Release
7477
pccl_build_cuda_support: ON
78+
arch: x64
7579

7680
# aarch64, no cuda (cross-compile, no testing!)
7781
- runs-on: [ self-hosted, Windows, X64, cpu ]
@@ -83,6 +87,7 @@ jobs:
8387
generator: Ninja
8488
build_type: Release
8589
pccl_build_cuda_support: OFF
90+
arch: arm64
8691

8792
# MacOS configuration using self-hosted runners
8893
- runs-on: [ self-hosted, macOS, ARM64, cpu ]
@@ -93,6 +98,7 @@ jobs:
9398
generator: Ninja
9499
build_type: Release
95100
pccl_build_cuda_support: OFF
101+
arch: arm64
96102

97103
steps:
98104
- uses: actions/checkout@v4
@@ -209,13 +215,15 @@ jobs:
209215
- name: Zip artifacts (Unix)
210216
if: runner.os != 'Windows'
211217
run: |
212-
zip -r artifacts/libpccl.zip artifacts/lib artifacts/include
218+
cd artifacts
219+
zip -r libpccl.zip lib include
213220
214221
- name: Zip artifacts (Windows)
215222
if: runner.os == 'Windows'
216223
shell: powershell
217224
run: |
218-
Compress-Archive -Path artifacts\lib, artifacts\include -DestinationPath artifacts\libpccl.zip
225+
cd artifacts
226+
Compress-Archive -Path lib, include -DestinationPath libpccl.zip
219227
220228
- name: Create Python virtual environment (Unix)
221229
if: ${{ runner.os != 'Windows' && matrix.is_host_arch }}
@@ -315,5 +323,5 @@ jobs:
315323
with:
316324
upload_url: ${{ needs.create_release.outputs.upload_url }}
317325
asset_path: artifacts/libpccl.zip
318-
asset_name: libpccl-${{ runner.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ matrix.is_host_arch && 'host' || 'cross' }}.zip
326+
asset_name: libpccl-${{ runner.os }}-${{ matrix.build_type }}-${{ matrix.pccl_build_cuda_support == 'ON' && 'cuda' || 'nocuda' }}-${{ matrix.arch }}.zip
319327
asset_content_type: application/zip

0 commit comments

Comments
 (0)