File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,6 @@ jobs:
151
151
name : Windows
152
152
needs : pre-commit
153
153
runs-on : windows-latest
154
- env :
155
- BIN_RELEASE : 20231011
156
154
defaults :
157
155
run :
158
156
shell : bash
@@ -171,11 +169,18 @@ jobs:
171
169
python -m pip install --upgrade pip
172
170
pip install build flask pytest
173
171
- name : Install OpenSlide
172
+ env :
173
+ GH_TOKEN : ${{ github.token }}
174
174
run : |
175
175
mkdir -p c:\\openslide
176
176
cd c:\\openslide
177
- zipname=openslide-win64-${BIN_RELEASE}
178
- curl -LfO "https://github.com/openslide/openslide-bin/releases/download/v${BIN_RELEASE}/${zipname}.zip"
177
+ release=$(gh release list -R openslide/openslide-bin -L 1 \
178
+ --json tagName --exclude-drafts --exclude-pre-releases | \
179
+ jq -r .[0].tagName | \
180
+ tr -d v)
181
+ zipname="openslide-win64-${release}"
182
+ gh release download -R openslide/openslide-bin "v${release}" \
183
+ --pattern "${zipname}.zip"
179
184
7z x ${zipname}.zip
180
185
echo "OPENSLIDE_PATH=c:\\openslide\\${zipname}\\bin" >> $GITHUB_ENV
181
186
- name : Build wheel
You can’t perform that action at this time.
0 commit comments