Skip to content

Commit 63f68f3

Browse files
authored
Update test-mlc-script-features.yml (#302)
* Update test-mlc-script-features.yml * Fix windows install for wkhtmltopdf
1 parent 97c759e commit 63f68f3

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/test-mlc-script-features.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
mlcr get,dataset,preprocessed,imagenet,_NHWC --quiet
4444
mlc search cache --tags=get,dataset,preprocessed,imagenet,-_NCHW
4545
mlc search cache --tags=get,dataset,preprocessed,imagenet,-_NHWC
46+
# Tests run-scripts on windows,ubuntu,macos
47+
mlcr get,wkhtmltopdf
4648
4749
- name: Test versions
4850
continue-on-error: true
@@ -52,6 +54,8 @@ jobs:
5254
test $? -eq 0 || exit $?
5355
mlcr get,generic-python-lib,_package.scipy --version=1.9.2 --quiet
5456
test $? -eq 0 || exit $?
57+
mlc find cache --tags=get,generic-python-lib,_package.scipy,version-1.9.3
58+
test $? -eq 0 || exit $?
5559
# Need to add find cache here
5660
# mlcr get,generic-python-lib,_package.scipy --version=1.9.3 --quiet --only_execute_from_cache=True
5761
# test $? -eq 0 || exit 0

script/get-wkhtmltopdf/run.bat

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
@echo off
2-
setlocal
3-
41
:: Define download URL and filename
5-
set "URL=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox-0.12.6-1.msvc2015-win64.exe"
2+
set "URL=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.msvc2015-win64.exe"
63
set "FILE=wkhtmltox-0.12.6-1.msvc2015-win64.exe"
74

85
:: Download the installer if it doesn't already exist
96
if not exist "%FILE%" (
107
echo Downloading %FILE%...
11-
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('%URL%', '%CD%\%FILE%')"
8+
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('%URL%', '%CD%\\%FILE%')"
129
if %ERRORLEVEL% neq 0 (
1310
echo Download failed!
1411
exit /b %ERRORLEVEL%
@@ -17,7 +14,7 @@ if not exist "%FILE%" (
1714

1815
:: Install the software (silent mode)
1916
echo Installing wkhtmltopdf...
20-
start /wait %FILE% /S
17+
start /wait %FILE% /quiet
2118

2219
if %ERRORLEVEL% neq 0 (
2320
echo Installation failed!

0 commit comments

Comments
 (0)