-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
wasm-tools
workload to run benchmarks for wasm (#66493)
* [wasm] perf jobs: Use workloads to build benchmark projects This uses the new `--wasmDataDir` parameter. And `--cli` to use the dotnet from `dotnet-workload` which has the `wasm-tools` workload installed from artifacts. * perf pipeline: Use a dotnet with workload installed from artifacts .. for running the benchmarks. * [wasm] perf pipeline: Keep only the needed bits in the BrowserWasm .. download, instead of copying the whole `artifacts` folder. * Skip downloading unncessary liveLibraries build * [wasm] Skip unncessary core_root, and corelcr download
- Loading branch information
Showing
5 changed files
with
54 additions
and
39 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
eng/pipelines/coreclr/perf-wasm-prepare-artifacts-steps.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
parameters: | ||
configForBuild: 'Release' | ||
|
||
steps: | ||
- script: >- | ||
./dotnet.sh build -p:TargetOS=Browser -p:TargetArchitecture=wasm /nr:false /p:TreatWarningsAsErrors=true | ||
/p:Configuration=${{ parameters.configForBuild }} | ||
/p:ContinuousIntegrationBuild=true | ||
/t:InstallWorkloadUsingArtifacts | ||
$(Build.SourcesDirectory)/src/tests/BuildWasmApps/Wasm.Build.Tests/Wasm.Build.Tests.csproj | ||
displayName: "Install workload using artifacts" | ||
- script: >- | ||
mkdir -p $(Build.SourcesDirectory)/artifacts/staging && | ||
cp -r $(Build.SourcesDirectory)/artifacts/bin/dotnet-workload $(Build.SourcesDirectory)/artifacts/staging && | ||
cp -r $(Build.SourcesDirectory)/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm $(Build.SourcesDirectory)/artifacts/staging && | ||
cp -r $(Build.SourcesDirectory)/artifacts/bin/microsoft.netcore.app.ref $(Build.SourcesDirectory)/artifacts/staging | ||
displayName: "Prepare artifacts staging directory" | ||
- template: /eng/pipelines/common/upload-artifact-step.yml | ||
parameters: | ||
rootFolder: '$(Build.SourcesDirectory)/artifacts/staging' | ||
includeRootFolder: true | ||
displayName: Browser Wasm Artifacts | ||
artifactName: BrowserWasm | ||
archiveType: zip | ||
archiveExtension: .zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters