Chen Xin a14177c0eb
[Feature]: Add github prebuild workflow after new release. (#1852)
* add prebuild dockerfile

* add prebuild test workflw

* update

* update

* rm other workflow for test

* Update docker image

* add win1o prebuild

* add test prebuild

* add windows scripts in prebuilt package

* add linux scripts in prebuilt package

* generate_build_config.py

* fix cudnn search

* fix env

* fix script

* fix rpath

* fix cwd

* fix windows

* fix lint

* windows prebuild ci

* linux prebuild ci

* fix

* update trigger

* Revert "rm other workflow for test"

This reverts commit 0a0387275014efab71046d33a0e52904672b4012.

* update sdk build readme

* update prebuild

* fix dll deps for python >= 3.8 on windows

* fix ci

* test prebuild

* update test script to avoid modify upload folder

* add onnxruntime.dll to mmdeploy_python

* update prebuild workflow

* update prebuild

* Update loader.cpp.in

* remove exists prebuild files

* fix opencv env

* update cmake options for mmdeploy python build

* remove test code

* fix lint

---------

Co-authored-by: RunningLeon <mnsheng@yeah.net>
Co-authored-by: RunningLeon <maningsheng@sensetime.com>
2023-03-23 17:00:19 +08:00

36 lines
1.0 KiB
PowerShell
Executable File

$WORKSPACE = $PSScriptRoot
$THIRDPARTY_DIR = "${WORKSPACE}/thirdparty"
Push-Location $THIRDPARTY_DIR
if (Test-Path -Path "onnxruntime" -PathType Container) {
$dir = [IO.Path]::Combine("$pwd", "onnxruntime")
$env:ONNXRUNTIME_DIR = $dir
$path = [IO.Path]::Combine("$dir", "lib")
$env:PATH = "$path;$env:PATH"
}
if (Test-Path -Path "tensorrt" -PathType Container) {
$dir = [IO.Path]::Combine("$pwd", "tensorrt")
$env:TENSORRT_DIR = $dir
$path = [IO.Path]::Combine("$dir", "lib")
$env:PATH = "$path;$env:PATH"
}
if (Test-Path -Path "openvino" -PathType Container) {
$root = [IO.Path]::Combine("$pwd", "openvino")
$dir = [IO.Path]::Combine("root", "runtime", "cmake")
$env:InferenceEngine_DIR = $dir
$paths = Get-ChildItem -Path $root -Filter "*.dll" -Recurse | `
ForEach-Object { $_.Directory.FullName } | Get-Unique
foreach ($path in $paths) {
$env:PATH = "$path;$env:PATH"
Write-Host $path
}
}
$path = [IO.Path]::Combine("$WORKSPACE", "bin")
$env:PATH = "$path;$env:PATH"
Pop-Location