Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Oct 27, 2024
1 parent 1176941 commit 1f92917
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .ci/install-opencl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ if (Test-Path "$installer") {

# Install OpenCL platform from installer executable
Write-Output "Running OpenCL installer"
Invoke-Command -ScriptBlock { Start-Process "$installer" -ArgumentList '/S /V"/quiet /norestart /passive /log opencl.log"' -Wait }
Invoke-Command -ScriptBlock {
Start-Process "$installer" -ArgumentList '/S /V"/quiet /norestart /passive /log opencl.log"' -Wait
}

$property = Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
if ($null -eq $property) {
Expand Down
16 changes: 8 additions & 8 deletions .ci/test-r-package-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ function Get-File-With-Tenacity {
$ProgressPreference = "SilentlyContinue" # progress bar bug extremely slows down download speed
do {
Write-Output "Downloading ${url}"
sleep 5;
sleep 5
Invoke-WebRequest -Uri $url -OutFile $destfile
} while(!$?);
} while(!$?)
}

# External utilities like R.exe / Rscript.exe writing to stderr (even for harmless
Expand Down Expand Up @@ -98,11 +98,11 @@ $env:R_LIB_PATH = "$env:BUILD_SOURCESDIRECTORY/RLibrary" -replace '[\\]', '/'
$env:R_LIBS = "$env:R_LIB_PATH"
$env:CMAKE_PATH = "$env:BUILD_SOURCESDIRECTORY/CMake_installation"
$env:PATH =
"$env:RTOOLS_BIN;" +
"$env:RTOOLS_MINGW_BIN;" +
"$env:R_LIB_PATH/R/bin/x64;" +
"$env:CMAKE_PATH/cmake-$env:CMAKE_VERSION-windows-x86_64/bin;" +
$env:PATH
"$env:RTOOLS_BIN;" +
"$env:RTOOLS_MINGW_BIN;" +
"$env:R_LIB_PATH/R/bin/x64;" +
"$env:CMAKE_PATH/cmake-$env:CMAKE_VERSION-windows-x86_64/bin;" +
$env:PATH
if ([version]$env:R_VERSION -lt [version]"4.0") {
$env:CRAN_MIRROR = "https://cran-archive.r-project.org"
} else {
Expand Down Expand Up @@ -144,7 +144,7 @@ $params = @{
url = "https://github.com/Kitware/CMake/releases/download/v{0}/cmake-{0}-windows-x86_64.zip" -f $env:CMAKE_VERSION
destfile = "$env:CMAKE_PATH/cmake.zip"
}
Get-File-With-Tenacity @params
Get-File-With-Tenacity @params

# Install R
Write-Output "Installing R"
Expand Down
8 changes: 3 additions & 5 deletions .ci/test-windows.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function Assert-Output {
param( [Parameter(Mandatory = $true)][bool]$success )
if (!$success) {
if (-not $success) {
$host.SetShouldExit(-1)
exit 1
}
Expand Down Expand Up @@ -87,13 +87,11 @@ if ($env:TASK -eq "regular") {
sh ./build-python.sh install --precompile ; Assert-Output $?
cp ./Release/lib_lightgbm.dll $env:BUILD_ARTIFACTSTAGINGDIRECTORY
cp ./Release/lightgbm.exe $env:BUILD_ARTIFACTSTAGINGDIRECTORY
}
elseif ($env:TASK -eq "sdist") {
} elseif ($env:TASK -eq "sdist") {
sh ./build-python.sh sdist ; Assert-Output $?
sh ./.ci/check-python-dists.sh ./dist ; Assert-Output $?
Set-Location dist; pip install @(Get-ChildItem *.gz) -v ; Assert-Output $?
}
elseif ($env:TASK -eq "bdist") {
} elseif ($env:TASK -eq "bdist") {
# Import the Chocolatey profile module so that the RefreshEnv command
# invoked below properly updates the current PowerShell session environment.
$module = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Expand Down

0 comments on commit 1f92917

Please sign in to comment.