mirror of https://github.com/llvm/torch-mlir
ci: re-add powershell script for windows release builds (#1561)
This file was removed as part of the PR that added build caching for Windows.pull/1562/head
parent
e78e9cd782
commit
e16ccce373
|
@ -0,0 +1,24 @@
|
|||
# Uncomment if you want to install Python. GHA provides this
|
||||
|
||||
#Write-Host "Installing python"
|
||||
|
||||
#Start-Process choco 'install python --version=3.10.8' -wait -NoNewWindow
|
||||
|
||||
#Write-Host "python installation completed successfully"
|
||||
|
||||
#Write-Host "Reload environment variables"
|
||||
#$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
|
||||
#Write-Host "Reloaded environment variables"
|
||||
|
||||
Write-Host "Installing Build Dependencies"
|
||||
python -m venv .\mlir_venv\
|
||||
.\mlir_venv\Scripts\activate
|
||||
pip install -r .\requirements.txt
|
||||
Write-Host "Build Deps installation completed successfully"
|
||||
|
||||
Write-Host "Building torch-mlir"
|
||||
$env:CMAKE_GENERATOR='Ninja'
|
||||
$env:TORCH_MLIR_ENABLE_LTC='0'
|
||||
python -m pip wheel -v -w wheelhouse ./ -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html -r whl-requirements.txt
|
||||
|
||||
Write-Host "Build completed successfully"
|
Loading…
Reference in New Issue