mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-20 06:14:33 +08:00
ee
This commit is contained in:
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@@ -31,14 +31,20 @@ jobs:
|
||||
$unionRoot = Join-Path $sdkRoot "UnionMetadata"
|
||||
$refsRoot = Join-Path $sdkRoot "References"
|
||||
if (!(Test-Path $unionRoot)) { throw "UnionMetadata not found at $unionRoot" }
|
||||
$winmdDir = Get-ChildItem $unionRoot -Directory | Sort-Object Name -Descending | Select-Object -First 1
|
||||
if (!$winmdDir) { throw "No UnionMetadata version directory found" }
|
||||
$refsDir = Get-ChildItem $refsRoot -Directory | Sort-Object Name -Descending | Select-Object -First 1
|
||||
$platformWinmd = Get-ChildItem $unionRoot -Recurse -Filter platform.winmd -ErrorAction SilentlyContinue |
|
||||
Sort-Object FullName -Descending | Select-Object -First 1
|
||||
if (!$platformWinmd) { throw "platform.winmd not found under $unionRoot" }
|
||||
$platformDir = Split-Path $platformWinmd.FullName -Parent
|
||||
$versionDir = $platformWinmd.Directory.Name
|
||||
$refsDir = Join-Path $refsRoot $versionDir
|
||||
if (!(Test-Path $refsDir)) {
|
||||
$refsDir = Get-ChildItem $refsRoot -Directory | Sort-Object Name -Descending | Select-Object -First 1
|
||||
}
|
||||
if (!$refsDir) { throw "No References version directory found" }
|
||||
$libPath = "$($winmdDir.FullName);$($refsDir.FullName)"
|
||||
"LIBPATH=$libPath" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
"WindowsSdkDir=$sdkRoot\\" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
"WindowsSdkVersion=$($winmdDir.Name)\\" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
$libPath = "$platformDir;$($refsDir.FullName)"
|
||||
Add-Content -Path $env:GITHUB_ENV -Value "LIBPATH=$libPath" -Encoding utf8
|
||||
Add-Content -Path $env:GITHUB_ENV -Value "WindowsSdkDir=$sdkRoot\\" -Encoding utf8
|
||||
Add-Content -Path $env:GITHUB_ENV -Value "WindowsSdkVersion=$versionDir\\" -Encoding utf8
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
Reference in New Issue
Block a user