From bb093c1d8b382a33a49e36ab2cf55c56997fad50 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Sun, 5 Feb 2023 21:31:22 -0500 Subject: [PATCH] [wasm] CI: add wasi jobs to runtime-wasm (#81647) - And run all the library tests with wasi, on optional pipeline --- .../extra-platforms/runtime-extra-platforms-wasm.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml b/eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml index 29ae803..81c303a 100644 --- a/eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml +++ b/eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml @@ -177,6 +177,19 @@ jobs: isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }} alwaysRun: ${{ parameters.isWasmOnlyBuild }} + # Wasi + - template: /eng/pipelines/common/templates/wasm-library-tests.yml + parameters: + platforms: + - wasi_wasm + - wasi_wasm_win + nameSuffix: '_Smoke' + extraBuildArgs: /p:EnableAggressiveTrimming=true /p:RunWasmSamples=true + shouldRunSmokeOnly: true + alwaysRun: ${{ variables.isRollingBuild }} + scenarios: + - normal + - ${{ if and(ne(parameters.isRollingBuild, true), ne(parameters.excludeNonLibTests, true), ne(parameters.debuggerTestsOnly, true)) }}: # Wasm.Build.Tests - template: /eng/pipelines/common/templates/wasm-build-tests.yml @@ -237,7 +250,11 @@ jobs: parameters: platforms: - wasi_wasm - extraBuildArgs: /p:EnableAggressiveTrimming=true + - wasi_wasm_win + extraBuildArgs: /p:EnableAggressiveTrimming=true /p:RunWasmSamples=true + # always run for wasm only pipelines alwaysRun: ${{ parameters.isWasmOnlyBuild }} + isExtraPlatformsBuild: ${{ parameters.isExtraPlatformsBuild }} + isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }} scenarios: - normal -- 2.7.4