Skip to content

Commit 227ba1a

Browse files
committed
properly unzip and place shared libs
1 parent fdaf7a6 commit 227ba1a

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/build-package.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,22 @@ jobs:
9898
name: deterministicGaussianSampling-libs
9999
path: external_libs
100100

101-
- name: Extract shared libraries (Linux)
102-
if: runner.os == 'Linux'
101+
- name: extract ZIP on Unix
102+
if: ${{ runner.os == 'Linux' }}
103103
run: |
104-
unzip external_libs/linux.zip -d external_libs_unpacked
104+
mkdir -p external_libs_unpacked/linux
105+
unzip external_libs/linux.zip -d external_libs_unpacked/linux
105106
mkdir -p src/deterministic_gaussian_sampling/lib/linux/bin
106-
cp -r external_libs_unpacked/lib/* \
107-
src/deterministic_gaussian_sampling/lib/linux/bin/
107+
cp -r external_libs_unpacked/linux/lib/* src/deterministic_gaussian_sampling/lib/linux/bin
108108
109-
- name: Extract shared libraries (Windows)
110-
if: runner.os == 'Windows'
109+
- name: extract ZIP on Windows
110+
if: ${{ runner.os == 'Windows' }}
111111
shell: pwsh
112112
run: |
113-
Expand-Archive external_libs/windows.zip external_libs_unpacked -Force
114-
New-Item -ItemType Directory `
115-
-Path src\deterministic_gaussian_sampling\lib\windows\bin -Force
116-
Copy-Item external_libs_unpacked\bin\* `
117-
src\deterministic_gaussian_sampling\lib\windows\bin -Recurse -Force
113+
New-Item -ItemType Directory -Path external_libs_unpacked\windows -Force
114+
Expand-Archive -Path external_libs/windows.zip -DestinationPath external_libs_unpacked\windows -Force
115+
New-Item -ItemType Directory -Path src\deterministic_gaussian_sampling\lib\windows\bin -Force
116+
Copy-Item external_libs_unpacked\windows\bin\* src\deterministic_gaussian_sampling\lib\windows\bin -Recurse -Force
118117
119118
- name: Install cibuildwheel
120119
run: pip install cibuildwheel

0 commit comments

Comments
 (0)