Skip to content

Commit

Permalink
split ci
Browse files Browse the repository at this point in the history
  • Loading branch information
radical committed Jan 8, 2024
1 parent 0ffff54 commit ebbc657
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions eng/pipelines/common/templates/simple-wasm-build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ jobs:
eq(variables['Build.SourceBranchName'], 'main'),
eq(variables['System.PullRequest.TargetBranch'], 'main'))
]
- name: wbtProjectArg
${{ if eq(platform, 'browser_wasm_win') }}:
value: '-projects'
${{ else }}:
value: '--projects'
- name: wbtProjectPath
${{ if contains(platform, 'browser_wasm') }}:
value: 'src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj'
${{ else }}:
value: 'src/mono/wasi/Wasi.Build.Tests/Wasi.Build.Tests.csproj'

jobParameters:
isExtraPlatforms: ${{ parameters.isExtraPlatformsBuild }}
testGroup: innerloop
Expand All @@ -42,6 +53,17 @@ jobs:
eq(variables['isDefaultPipeline'], variables['shouldRunWasmBuildTestsOnDefaultPipeline']))
# extra steps, run tests
postBuildSteps:
- script: >-
$(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci
$(wbtProjectArg) $(Build.SourcesDirectory)/$(wbtProjectPath)
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/WBTBuild.binlog
/p:Configuration=$(_BuildConfig)
/p:TestUsingWorkloads=true
/p:InstallWorkloadForTesting=true
/p:BrowserHost=$(_hostedOs)
/p:WorkloadsTestPreviousVersions=$(workloadsTestPreviousVersionsVar)
/p:ArchiveTests=true
- template: /eng/pipelines/libraries/helix.yml
parameters:
creator: dotnet-bot
Expand Down

0 comments on commit ebbc657

Please sign in to comment.