Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5399e76
chore: Update AppId and bundle paths
jeromelaban May 8, 2025
7d35d67
chore: Adjust replacements
jeromelaban May 8, 2025
3ef20f4
chore: Adjust pattern match
jeromelaban May 8, 2025
3b59e3a
chore: Adjust package bundle file name
jeromelaban May 9, 2025
6c31371
chore: Adjust package name
jeromelaban May 9, 2025
671dd3d
chore: display release package size windows build
booskander May 29, 2025
702f6a7
chore: display publish folder size in runner logs
booskander May 29, 2025
4a32fe1
ci: display publish folder size in skia desktop
booskander May 29, 2025
55bb326
ci: logging skia desktop bin folder size
booskander May 30, 2025
2c773fa
ci: adding a json formatted metrics file
booskander May 30, 2025
9eef792
ci: use bash explicitly
booskander May 30, 2025
0937101
ci: logging size before writing
booskander May 30, 2025
bdfbe72
ci: publish build metrics as standalone artifact
booskander May 30, 2025
ae9069d
ci: investigating metrics script not found
booskander May 30, 2025
c90a462
ci: yml template step to collect
booskander May 31, 2025
86a8a78
ci: changing script path
booskander May 31, 2025
24454ac
ci: display current directory in metrics template
booskander Jun 3, 2025
d77abc2
ci: adding quotes around script path
booskander Jun 3, 2025
91f3bdf
ci: publishing the metrics artifact
booskander Jun 3, 2025
6519bcb
ci: missing steps keyword
booskander Jun 3, 2025
79a0d01
ci: adding windows build metrics
booskander Jun 3, 2025
9058b18
ci: correcting typo in bash command
booskander Jun 3, 2025
22e0060
ci: fixing date and path on windows build
booskander Jun 3, 2025
5814afd
ci: excluding bin-logs from package size
booskander Jun 3, 2025
c436e47
ci: excluding bin-log from package size
booskander Jun 3, 2025
b7b98fe
ci: windows works, changing path for skia
booskander Jun 3, 2025
8dc1832
ci: changing du command to avoid rounding
booskander Jun 3, 2025
febd368
ci: adding metrics for other stages
booskander Jun 3, 2025
687d6a9
ci: fixing wasm path not found
booskander Jun 3, 2025
e0a8f7b
ci: wasm works, fixing mobile
booskander Jun 3, 2025
ac44e90
ci: testing webhook
booskander Jun 3, 2025
32662a8
ci: https request on web server
booskander Jun 3, 2025
42d1a08
ci: fix artifact directory
booskander Jun 3, 2025
7fcc0bb
ci: testing dotnet tools
booskander Jun 4, 2025
afbdbd4
ci: testing dotnet tools
booskander Jun 4, 2025
b840aa1
ci: dotnet counter
booskander Jun 4, 2025
0018696
ci: dotnet counters
booskander Jun 4, 2025
1df410b
ci: typo in yml
booskander Jun 4, 2025
3f3deef
ci: changing directory for diagnostic stage
booskander Jun 4, 2025
c636e3b
ci: removing templates import
booskander Jun 4, 2025
3a51824
ci: adding profiling step inside build stage (skia)
booskander Jun 4, 2025
1ba2d97
ci: removing line in yml
booskander Jun 4, 2025
0b2e02f
ci: changing for bash instead of script
booskander Jun 4, 2025
36d46b3
ci: fixing exe path
booskander Jun 4, 2025
2a536d4
ci: changing csv path to artifact staging dir
booskander Jun 4, 2025
da3625d
ci: update publish artifact
booskander Jun 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion build/stage-build-skia-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ steps:
- template: templates/canary-updater.yml

- bash: |
dotnet build Uno.Gallery/Uno.Gallery.csproj -p:TargetFrameworkOverride=net9.0-desktop -c Release -p:InformationalVersion=$(NBGV_InformationalVersion) -bl:$(build.artifactstagingdirectory)/build.binlog
dotnet build Uno.Gallery/Uno.Gallery.csproj \
-p:TargetFrameworkOverride=net9.0-desktop \
-c Release \
-p:InformationalVersion=$(NBGV_InformationalVersion) \
-bl:$(Build.ArtifactStagingDirectory)/build.binlog

- task: CopyFiles@2
displayName: Copy Skia output
Expand All @@ -18,7 +22,22 @@ steps:
Contents: '**/*.*'
TargetFolder: $(Build.ArtifactStagingDirectory)/bin

- bash: |
folder_size=$(du -sh --block-size=1M $(Build.ArtifactStagingDirectory)/bin | cut -f1)

cat <<EOF > $(Build.ArtifactStagingDirectory)/bin/metrics.json
{
"buildId": "$(Build.BuildId)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a timestamp here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank xiao, should be added

"commit": "$(Build.SourceVersion)",
"binArtifactSize": "${folder_size}"
}
EOF
displayName: Add metrics to artifact (JSON)


- task: PublishBuildArtifacts@1
displayName: Publish desktop artifacts
retryCountOnTaskFailure: 3
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)/bin
ArtifactName: desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
stages:
- stage: Android_Publish
displayName: 'Android Publish'
displayName: 'Android Publish (Canary)'
dependsOn: Android

jobs:
Expand All @@ -26,8 +26,8 @@
displayName: 'Play Store Publish'
inputs:
serviceConnection: 'Uno Platform Google Play'
applicationId: 'uno.platform.gallery.native_canary'
bundleFile: '$(Pipeline.Workspace)/drop/publish/uno.platform.gallery.skia_canary-Signed.aab'
applicationId: 'uno.platform.gallery_native_canary'
bundleFile: '$(Pipeline.Workspace)/drop/publish/uno.platform.gallery_native_canary-Signed.aab'
track: 'alpha'

- deployment: 'Android_Publish_Skia'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
stages:
- stage: Catalyst_Publish
displayName: 'Catalyst Publish'
displayName: 'Catalyst Publish (Canary)'
dependsOn: Apple

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
stages:
- stage: iOS_Publish
displayName: 'iOS Publish'
displayName: 'iOS Publish (Canary)'
dependsOn: Apple

jobs:
Expand Down
6 changes: 3 additions & 3 deletions build/templates/canary-publish/stage-publish-wasm-canary.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
stages:
- stage: WebAssembly_Publish
displayName: 'WebAssembly'
displayName: 'WebAssembly (Canary)'
dependsOn: WebAssembly

jobs:
Expand Down Expand Up @@ -30,7 +30,7 @@
skip_api_build: true
is_static_export: false
verbose: false
azure_static_web_apps_api_token: '$(PROD_SWA_TOKEN)'
azure_static_web_apps_api_token: '$(DEV_SWA_TOKEN)'
deployment_environment: 'canary-dom'

- deployment: 'WebAssembly_Publish_SKIA'
Expand Down Expand Up @@ -59,5 +59,5 @@
skip_api_build: true
is_static_export: false
verbose: false
azure_static_web_apps_api_token: '$(PROD_SWA_TOKEN)'
azure_static_web_apps_api_token: '$(DEV_SWA_TOKEN)'
deployment_environment: 'canary-skia'
36 changes: 14 additions & 22 deletions build/templates/canary-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@ steps:
packageAuthor: 'nventive,uno platform'
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'

- task: unoplatformCanaryUpdater@1
displayName: 'Canary Update (skia-everywhere)'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries/skia-everywhere')
inputs:
solution: '$(build.sourcesdirectory)'
usePrivateFeed: false
useNuGetOrg: true
mergeBranch: true
branchToMerge: master
nugetUpdaterVersion: '1.2.10'
nugetVersion: dev
packageAuthor: 'nventive,unoplatform,uno platform'
summaryFile: '$(Build.ArtifactStagingDirectory)/Summary.md'
resultFile: '$(Build.ArtifactStagingDirectory)/Results.json'
# additionalPublicSources: 'https://pkgs.dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_packaging/Features/nuget/v3/index.json'

#- pwsh: |
# cd $(build.sourcesdirectory)
# dotnet nuget add source https://pkgs.dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_packaging/Features/nuget/v3/index.json -n unofeatures
Expand All @@ -51,25 +35,33 @@ steps:
gci -r -include "Uno.Gallery.csproj" |
foreach-object {
$a = $_.fullname; ( get-content $a ) |
foreach-object { $_ -replace "uno.platform.gallery.skia","uno.platform.gallery.skia-canary" } |
foreach-object { $_ -replace "uno\.platform\.gallery\.native","uno.platform.gallery.native-canary" } |
set-content $a }
displayName: 'Adjust App ID (skia)'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
- pwsh: |
gci -r -include "Uno.Gallery.csproj" |
foreach-object {
$a = $_.fullname; ( get-content $a ) |
foreach-object { $_ -replace "uno\.platform\.gallery_native","uno.platform.gallery_native-canary" } |
set-content $a }
displayName: 'Adjust info.plist bundle name (skia)'
displayName: 'Adjust App ID (Android Native)'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')

- pwsh: |
gci -r -include "Uno.Gallery.csproj" |
foreach-object {
$a = $_.fullname; ( get-content $a ) |
foreach-object { $_ -replace "com.nventive.uno.ui.demo","com.nventive.uno.ui.demo.canary" } |
foreach-object { $_ -replace "com\.nventive\.uno\.ui\.demo","com.nventive.uno.ui.demo.canary" } |
set-content $a }
displayName: 'Adjust info.plist bundle name (Android)'
displayName: 'Adjust App ID (Android Skia)'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')

- pwsh: |
gci -r -include "Uno.Gallery.csproj" |
foreach-object {
$a = $_.fullname; ( get-content $a ) |
foreach-object { $_ -replace "com.nventive.uno.gallery","com.nventive.uno.gallery-canary" } |
foreach-object { $_ -replace "com\.nventive\.uno\.gallery","com.nventive.uno.gallery-canary" } |
set-content $a }
displayName: 'Adjust info.plist bundle name (Catalyst)'
displayName: 'Adjust App ID (Catalyst)'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
Loading