Skip to content

Commit 52ed9b2

Browse files
committed
update build.yml
1 parent 4bd2e7d commit 52ed9b2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,17 @@ jobs:
125125
# version refers to the python version. So 3.8 -> 38
126126
version=$(echo ${{ matrix.python-version }} | sed 's/\.//g')
127127
128+
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
129+
chunk="windows"
130+
else:
131+
chunk="${{matrix.os}}"
132+
fi
133+
128134
# this finds files like
129135
# nlopt-2.6.2-cp36-cp36m-win_amd64.whl
130136
# nlopt-2.6.2-cp36-cp36m-manylinux10_amd64.whl
131137
# nlopt-2.7.1-cp310-cp310-win_amd64.whl
132-
file=$(find dist -name "nlopt-*${version}*${os}*.whl" -type f);
138+
file=$(find dist/${chunk} -name "nlopt-*${version}*${os}*.whl" -type f);
133139
134140
echo "Installing file: ${file}"
135141

0 commit comments

Comments
 (0)