Compare commits

...

47 Commits

Author SHA1 Message Date
Leilei Zhang
e30c52a8d8 for test 2025-02-16 00:09:50 +08:00
Leilei Zhang
7460863ecd update the path 2025-02-15 22:44:43 +08:00
Leilei Zhang
d81d9d95dc change 2025-02-15 21:39:37 +08:00
Leilei Zhang
574c6b0411 fix 2025-02-15 21:38:40 +08:00
Leilei Zhang
72178e5717 update 2025-02-15 21:22:31 +08:00
Leilei Zhang
88fe8bcabc update 2025-02-15 21:10:04 +08:00
Leilei Zhang
5e00741e6a fix test 2025-02-15 21:02:03 +08:00
Leilei Zhang
53d98c1948 update path 2025-02-15 19:44:11 +08:00
Leilei Zhang
d34d5350d8 update path 2025-02-15 19:24:43 +08:00
Leilei Zhang
68611fbce5 fix 2025-02-15 18:28:54 +08:00
Leilei Zhang
63498a3128 test 2025-02-15 18:19:40 +08:00
Leilei Zhang
7df224d75e test 2025-02-15 17:57:12 +08:00
Leilei Zhang
96215f3342 update the url 2025-02-15 16:01:09 +08:00
Leilei Zhang
31e069e8bf using zip 2025-02-15 15:56:25 +08:00
Leilei Zhang
a331548343 test x86 2025-02-15 14:35:38 +08:00
Leilei Zhang
c9ad06da34 fix 2025-02-15 12:22:40 +08:00
Leilei Zhang
b815ce6620 fix test 2025-02-15 12:01:57 +08:00
Leilei Zhang
d6fa1ae681 update the file name for spelling check 2025-02-14 16:45:51 +08:00
Leilei Zhang
f68a31de87 revert some testing file 2025-02-14 16:31:26 +08:00
Leilei Zhang
b6a9059743 change for test 2025-02-14 15:20:31 +08:00
Leilei Zhang
b568747889 use 3.11.1 2025-02-14 14:55:51 +08:00
Leilei Zhang
caf61ff515 fix 2025-02-14 14:35:13 +08:00
Leilei Zhang
247b01de8a add 2025-02-14 14:31:08 +08:00
Leilei Zhang
44ce4696eb for testing 2025-02-14 13:10:47 +08:00
Leilei Zhang
0ccb06214f fix x64 python install 2025-02-14 11:54:12 +08:00
Leilei Zhang
9464aff9b5 use templete 2025-02-14 10:42:18 +08:00
Leilei Zhang
ded75c5962 fix 2025-02-14 10:03:22 +08:00
Leilei Zhang
2ef6db2201 test large 2025-02-14 10:02:25 +08:00
Leilei Zhang
414852a914 add debug 2025-02-14 01:58:10 +08:00
Leilei Zhang
e794496d4b test cli 2025-02-14 01:55:51 +08:00
Leilei Zhang
b12c7fc58a update 2025-02-14 00:46:05 +08:00
Leilei Zhang
3c9fb96290 change 2025-02-14 00:28:27 +08:00
Leilei Zhang
2a06dbb07c az 2025-02-14 00:09:43 +08:00
Leilei Zhang
7b315f348c merge 2025-02-13 23:49:50 +08:00
Leilei Zhang
c11843cc83 test 2025-02-13 23:43:42 +08:00
Leilei Zhang
d3e34c5b9f add 2025-02-13 23:36:20 +08:00
Leilei Zhang
a252fc6f77 test 2025-02-13 23:27:49 +08:00
Leilei Zhang
a584ca7a53 update 2025-02-13 23:18:56 +08:00
Leilei Zhang
51597b4847 update enve 2025-02-13 19:17:46 +08:00
Leilei Zhang
c6923536f3 tes 2025-02-13 19:05:35 +08:00
Leilei Zhang
b9ba3ae9ac use powershell 2025-02-13 18:57:12 +08:00
Leilei Zhang
d93353ef43 test 2025-02-13 18:33:12 +08:00
Leilei Zhang
38a883cc99 update 2025-02-13 18:30:19 +08:00
Leilei Zhang
56ce85d988 install python 2025-02-13 18:28:28 +08:00
Leilei Zhang
d892768b79 update test 2025-02-13 16:39:24 +08:00
Leilei Zhang
229bd70910 change file 2025-02-13 14:57:18 +08:00
Leilei Zhang
494b39669a for testing az 2025-02-13 14:39:22 +08:00
5 changed files with 69 additions and 86 deletions

View File

@@ -1,12 +1,25 @@
trigger: none
pr: none
schedules:
- cron: "0 0 * * *" # every day at midnight
displayName: "Daily midnight Build"
branches:
include:
- main
always: false # only run if there's code changes!
trigger:
batch: true
branches:
include:
- main
- stable
# paths:
# exclude:
# - doc/*
# - temp/*
# - tools/*
# - '**.md'
pr:
branches:
include:
- main
- stable
# paths:
# exclude:
# - '**.md'
# - doc
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
@@ -28,15 +41,6 @@ parameters:
type: boolean
displayName: "Build Using Visual Studio Preview"
default: false
- name: useLatestWinAppSDK
type: boolean
default: true
- name: winAppSDKVersionNumber
type: string
default: 1.6
- name: useExperimentalVersion
type: boolean
default: false
extends:
template: templates/pipeline-ci-build.yml
@@ -45,6 +49,3 @@ extends:
enableMsBuildCaching: ${{ parameters.enableMsBuildCaching }}
runTests: ${{ parameters.runTests }}
useVSPreview: ${{ parameters.useVSPreview }}
useLatestWinAppSDK: ${{ parameters.useLatestWinAppSDK }}
winAppSDKVersionNumber: ${{ parameters.winAppSDKVersionNumber }}
useExperimentalVersion: ${{ parameters.useExperimentalVersion }}

View File

@@ -456,12 +456,6 @@ jobs:
Copy-Item src\gpo\assets\* "$(JobOutputDirectory)/gpo" -Recurse
displayName: Stage GPO files
- ${{ if eq(parameters.publishArtifacts, true) }}:
- publish: $(JobOutputDirectory)
artifact: $(JobOutputArtifactName)
displayName: Publish all outputs
condition: always()
# Running the tests may result in future jobs consuming artifacts out of this build
- ${{ if eq(parameters.runTests, true) }}:
- task: CopyFiles@2
@@ -471,17 +465,8 @@ jobs:
contents: '$(BuildPlatform)/$(BuildConfiguration)/**/*'
targetFolder: '$(JobOutputDirectory)\$(BuildPlatform)\$(BuildConfiguration)'
- task: CopyFiles@2
displayName: Stage entire build output
inputs:
sourceFolder: $(JobOutputDirectory)
contents: |-
**
!**\*.pdb
!**\*.lib
targetFolder: '$(JobOutputDirectory)\TestArtifacts'
- publish: $(JobOutputDirectory)\TestArtifacts
artifact: $(JobOutputArtifactName)-TestArtifacts
displayName: Publish all outputs for testing
- ${{ if eq(parameters.publishArtifacts, true) }}:
- publish: $(JobOutputDirectory)
artifact: $(JobOutputArtifactName)
displayName: Publish all outputs
condition: always()

View File

@@ -19,7 +19,7 @@ jobs:
BuildPlatform: ${{ parameters.platform }}
BuildConfiguration: ${{ parameters.configuration }}
SrcPath: $(Build.Repository.LocalPath)
TestArtifactsName: build-${{ parameters.platform }}-${{ parameters.configuration }}${{ parameters.inputArtifactStem }}-TestArtifacts
TestArtifactsName: build-${{ parameters.platform }}-${{ parameters.configuration }}${{ parameters.inputArtifactStem }}
pool:
${{ if eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564') }}:
${{ if ne(parameters.platform, 'ARM64') }}:
@@ -61,13 +61,9 @@ jobs:
reg add "HKLM\Software\Policies\Microsoft\Edge\WebView2\ReleaseChannels" /v PowerToys.exe /t REG_SZ /d "3"
displayName: "Enable WebView2 Canary Channel"
- download: current
displayName: Download artifacts
artifact: $(TestArtifactsName)
patterns: |-
**
!**\*.pdb
!**\*.lib
- template: steps-download-artifacts-with-azure-cli.yml
parameters:
artifactName: $(TestArtifactsName)
- template: steps-ensure-dotnet-version.yml
parameters:

View File

@@ -43,43 +43,11 @@ stages:
- template: job-ci-precheck.yml
- ${{ each platform in parameters.buildPlatforms }}:
- stage: Build_${{ platform }}
displayName: Build ${{ platform }}
${{ if ne(variables['Build.Reason'], 'Manual') }}:
dependsOn: [Precheck]
condition: and(succeeded(), ne(dependencies.Precheck.outputs['Precheck.verifyBuildRequest.skipBuild'], 'Yes'))
${{ else }}:
dependsOn: []
- stage: Test_${{ platform }}
displayName: Test ${{ platform }}
jobs:
- template: job-build-project.yml
- template: job-test-project.yml
parameters:
pool:
${{ if eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564') }}:
name: SHINE-INT-L
${{ else }}:
name: SHINE-OSS-L
${{ if eq(parameters.useVSPreview, true) }}:
demands: ImageOverride -equals SHINE-VS17-Preview
buildPlatforms:
- ${{ platform }}
buildConfigurations: [Release]
enablePackageCaching: true
enableMsBuildCaching: ${{ parameters.enableMsBuildCaching }}
runTests: ${{ parameters.runTests }}
useVSPreview: ${{ parameters.useVSPreview }}
useLatestWinAppSDK: ${{ parameters.useLatestWinAppSDK }}
${{ if eq(parameters.useLatestWinAppSDK, true) }}:
winAppSDKVersionNumber: ${{ parameters.winAppSDKVersionNumber }}
useExperimentalVersion: ${{ parameters.useExperimentalVersion }}
- ${{ if eq(parameters.runTests, true) }}:
- stage: Test_${{ platform }}
displayName: Test ${{ platform }}
dependsOn:
- Build_${{platform}}
jobs:
- template: job-test-project.yml
parameters:
platform: ${{ platform }}
configuration: Release
useLatestWebView2: ${{ parameters.useLatestWebView2 }}
platform: ${{ platform }}
configuration: Release
useLatestWebView2: ${{ parameters.useLatestWebView2 }}

View File

@@ -0,0 +1,33 @@
parameters:
- name: artifactName
type: string
default: ""
# Why use az cli to download? → The ARM agent may run into OutOfMemory issues.
# Why use the Azure CLI ZIP version? → It comes with its own Python and works fine under emulation on ARM64.
# Why not use AzureCLI@2 task? → It requires azureSubscription, which is unnecessary for downloading artifacts.
steps:
- powershell: |
Write-Host "Downloading Azure CLI ZIP..."
$azCliUrl = "https://aka.ms/installazurecliwindowszipx64"
$azCliZip = "$(Build.ArtifactStagingDirectory)\azure-cli.zip"
Invoke-WebRequest -Uri $azCliUrl -OutFile $azCliZip
displayName: 'Install Azure CLI from ZIP'
- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Build.ArtifactStagingDirectory)\azure-cli.zip'
destinationFolder: '$(Build.ArtifactStagingDirectory)\AzureCLI'
- pwsh: |
$azureCliPath = "$(Build.ArtifactStagingDirectory)\AzureCLI\bin"
$env:Path = "$azureCliPath;" + $env:Path
Write-Host "Configuring Azure DevOps defaults..."
az devops configure --defaults organization='$(System.TeamFoundationCollectionUri)' project='$(System.TeamProject)' --use-git-aliases true
Write-Host "Downloading artifacts..."
az pipelines runs artifact download --artifact-name ${{parameters.artifactName}} --path "$(Pipeline.Workspace)/${{parameters.artifactName}}" --run-id $(Build.BuildId) --debug
displayName: 'Download artifacts with Azure CLI'
env:
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)