Skip to content

Commit bb76b64

Browse files
committed
fix CI for Windows builds; remove unused file
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 1d1c61f commit bb76b64

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

eng/pipelines/common/global-build-job.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ jobs:
225225
displayName: Install wasi-sdk
226226
- script: call $(Build.SourcesDirectory)/eng/pipelines/runtimelab/install-wasmtime.cmd $(Build.SourcesDirectory)\wasm-tools
227227
displayName: Install wasmtime
228-
- script: npm install -g @bytecodealliance/jco
229-
displayName: Install jco
228+
- script: pwsh $(Build.SourcesDirectory)/eng/pipelines/runtimelab/install-jco.ps1 $(Build.SourcesDirectory)
229+
displayName: Install Jco
230230

231231
- ${{ if or(eq(parameters.platform, 'browser_wasm_win'), and(eq(parameters.platform, 'wasi_wasm_win'), not(eq(parameters.runtimeFlavor, 'coreclr')))) }}:
232232
# Update machine certs
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
$RootPath = $Args[0]
2+
3+
$NpmExePath = $Env:NPM_EXECUTABLE
4+
5+
Set-Location -Path $RootPath
6+
7+
$NpmCommand = "$NpmExePath install @bytecodealliance/jco"
8+
Invoke-Expression $NpmCommand
9+
10+
$NpmCommand = "$NpmExePath install @bytecodealliance/preview2-shim"
11+
Invoke-Expression $NpmCommand
12+

eng/pipelines/runtimelab/install-nodejs.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ if ($IsWindows)
5151
{
5252
Expand-Archive -LiteralPath "$InstallPath\$NodeJSZipName" -DestinationPath $InstallPath -Force
5353
$NodeJSExePath = "$InstallPath\$NodeJSInstallName\node.exe"
54+
$NpmExePath = "$InstallPath\$NodeJSInstallName\npm.cmd"
5455
}
5556
else
5657
{
5758
tar xJf $InstallPath/$NodeJSZipName -C $InstallPath
5859
$NodeJSExePath = "$InstallPath/$NodeJSInstallName/bin/node"
60+
$NpmExePath = "$InstallPath/$NodeJSInstallName/bin/npm"
5961
}
6062

6163
if (!(Test-Path $NodeJSExePath))
@@ -64,5 +66,14 @@ if (!(Test-Path $NodeJSExePath))
6466
exit 1
6567
}
6668

69+
if (!(Test-Path $NpmExePath))
70+
{
71+
Write-Error "Did not find NPM at: '$NpmExePath'"
72+
exit 1
73+
}
74+
6775
Write-Host Setting NODEJS_EXECUTABLE to $NodeJSExePath
6876
Write-Host "##vso[task.setvariable variable=NODEJS_EXECUTABLE]$NodeJSExePath"
77+
78+
Write-Host Setting NPM_EXECUTABLE to $NpmExePath
79+
Write-Host "##vso[task.setvariable variable=NPM_EXECUTABLE]$NpmExePath"

src/tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
<!-- Set Test Wrapper running host OS -->
180180
<PropertyGroup>
181181
<TestWrapperTargetsWindows>false</TestWrapperTargetsWindows>
182-
<TestWrapperTargetsWindows Condition=" ('$(TargetsWindows)' != '' And '$(TargetsWindows)' ) OR ('$(TargetOS)' == 'android' And '$(TargetArchitecture)' == 'arm64' )">true</TestWrapperTargetsWindows>
182+
<TestWrapperTargetsWindows Condition=" ('$(TargetsWindows)' != '' And '$(TargetsWindows)' ) OR ('$(TargetOS)' == 'android' And '$(TargetArchitecture)' == 'arm64' ) OR ($(WindowsHost) And '$(TargetArchitecture)' == 'wasm')">true</TestWrapperTargetsWindows>
183183
<TestScriptExtension Condition="'$(TestWrapperTargetsWindows)' != 'true' ">sh</TestScriptExtension>
184184
<TestScriptExtension Condition="'$(TestWrapperTargetsWindows)' == 'true' ">cmd</TestScriptExtension>
185185
</PropertyGroup>

src/tests/nativeaot/SmokeTests/SharedLibrary/LibraryWorld_wasm_import_linkage_attribute.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/tests/nativeaot/SmokeTests/SharedLibrary/generate-bindings.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ cargo install --locked --no-default-features --features csharp-naot \
1717
--git https://github.com/bytecodealliance/wit-bindgen --rev 266d638f7a9c4535ba5fa1f1bb2e8cc6b5d58667 \
1818
wit-bindgen-cli
1919
wit-bindgen c-sharp -w library -r native-aot wit
20+
rm -r LibraryWorld_wasm_import_linkage_attribute.cs

0 commit comments

Comments
 (0)