mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 15:25:50 +00:00
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -21,9 +21,25 @@ jobs:
|
|||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 22.12
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Configure Windows SDK WinMD
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
$sdkRoot = Join-Path ${env:ProgramFiles(x86)} "Windows Kits\\10"
|
||||||
|
$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
|
||||||
|
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
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user