feat: Enable PGAOT
This commit is contained in:
Родитель
6868110111
Коммит
1d283e8c23
81
.vsts-ci.yml
81
.vsts-ci.yml
|
@ -1,44 +1,67 @@
|
||||||
phases:
|
jobs:
|
||||||
- phase: VS_Latest
|
- job: VS_Latest
|
||||||
|
container: unoplatform/wasm-build:2.0
|
||||||
|
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
|
|
||||||
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)\.nuget-http-cache
|
|
||||||
SourceLinkEnabled: false
|
SourceLinkEnabled: false
|
||||||
|
DotnetRuntimePath: /usr/share/dotnet
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: GitVersion@3
|
|
||||||
inputs:
|
|
||||||
updateAssemblyInfo: false
|
|
||||||
|
|
||||||
- task: NuGetToolInstaller@0
|
|
||||||
inputs:
|
|
||||||
versionSpec: 4.7.0
|
|
||||||
checkLatest: false
|
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: UseDotNet@2
|
||||||
|
displayName: 'Use .Net Core runtime 2.2.x'
|
||||||
inputs:
|
inputs:
|
||||||
command: restore
|
packageType: runtime
|
||||||
solution: Quoter.sln
|
version: 2.2.x
|
||||||
selectOrConfig: select
|
installationPath: '$(DotnetRuntimePath)'
|
||||||
includeNuGetOrg: true
|
|
||||||
verbosityRestore: Normal
|
|
||||||
|
|
||||||
- task: MSBuild@1
|
- task: nventiveCanaryUpdater@5
|
||||||
|
displayName: 'Canary Update'
|
||||||
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
|
||||||
inputs:
|
inputs:
|
||||||
solution: Quoter.sln
|
solution: Quoter.sln
|
||||||
msbuildLocationMethod: version
|
branchToMerge: uno
|
||||||
msbuildVersion: latest
|
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
|
||||||
msbuildArchitecture: x86
|
resultFile: '$(Build.ArtifactStagingDirectory)/result.json'
|
||||||
msbuildArguments: /r /p:Configuration=Release "/p:PackageVersion=%GITVERSION_FullSemVer%" "/p:InformationalVersion=%GITVERSION_InformationalVersion%" /detailedsummary
|
nugetUpdaterVersion: 2.0.6
|
||||||
clean: false
|
packageAuthor: nventive
|
||||||
maximumCpuCount: true
|
|
||||||
restoreNugetPackages: false
|
- task: UseDotNet@2
|
||||||
logProjectEvents: false
|
displayName: 'Use .Net Core runtime 2.1.0'
|
||||||
createLogFile: false
|
inputs:
|
||||||
|
packageType: runtime
|
||||||
|
version: 2.1.0
|
||||||
|
installationPath: '$(DotnetRuntimePath)'
|
||||||
|
|
||||||
|
- task: GitVersion@5
|
||||||
|
inputs:
|
||||||
|
useConfigFile: true
|
||||||
|
configFilePath: gitversion.yml
|
||||||
|
|
||||||
|
- bash: |
|
||||||
|
cd ~
|
||||||
|
git clone https://github.com/emscripten-core/emsdk
|
||||||
|
cd emsdk
|
||||||
|
./emsdk install sdk-1.39.11
|
||||||
|
./emsdk activate sdk-1.39.11
|
||||||
|
|
||||||
|
displayName: 'Setup Emscripten'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
source ~/emsdk/emsdk_env.sh
|
||||||
|
cd $(build.sourcesdirectory)
|
||||||
|
msbuild /r /p:Configuration=Release $(build.sourcesdirectory)/src/uno/RoslynQuoter.Wasm/RoslynQuoter.Wasm.csproj "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITVERSION_FullSemVer: $(GITVERSION_FullSemVer)
|
||||||
|
displayName: 'Build Calculator'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: Publish Package Artifacts
|
displayName: Publish Package Artifacts
|
||||||
inputs:
|
inputs:
|
||||||
pathToPublish: .\src\uno\RoslynQuoter.Wasm\bin\Release\netstandard2.0\dist
|
pathToPublish: $(build.sourcesdirectory)/src/uno/RoslynQuoter.Wasm/bin/Release/netstandard2.0/dist
|
||||||
artifactType: container
|
artifactType: container
|
||||||
artifactName: RoslynQuoter-Wasm
|
artifactName: RoslynQuoter-Wasm
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 15
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 15.0.26430.16
|
VisualStudioVersion = 16.0.30114.128
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Quoter", "src\Quoter\Quoter.csproj", "{927AB47F-479C-423A-B21F-5DEC48533E1D}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Quoter", "src\Quoter\Quoter.csproj", "{927AB47F-479C-423A-B21F-5DEC48533E1D}"
|
||||||
EndProject
|
EndProject
|
||||||
|
@ -21,6 +21,7 @@ Global
|
||||||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||||
src\uno\RoslynQuoter.Shared\RoslynQuoter.Shared.projitems*{20f64aa7-d240-49d8-bc35-578e322c7279}*SharedItemsImports = 4
|
src\uno\RoslynQuoter.Shared\RoslynQuoter.Shared.projitems*{20f64aa7-d240-49d8-bc35-578e322c7279}*SharedItemsImports = 4
|
||||||
src\uno\RoslynQuoter.Shared\RoslynQuoter.Shared.projitems*{6279c845-92f8-4333-ab99-3d213163593c}*SharedItemsImports = 13
|
src\uno\RoslynQuoter.Shared\RoslynQuoter.Shared.projitems*{6279c845-92f8-4333-ab99-3d213163593c}*SharedItemsImports = 13
|
||||||
|
src\uno\RoslynQuoter.Shared\RoslynQuoter.Shared.projitems*{a706d15c-b407-42a2-b6e3-b6f88ba24e7e}*SharedItemsImports = 5
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
|
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
assembly-versioning-scheme: MajorMinorPatch
|
||||||
|
mode: Mainline
|
||||||
|
next-version: 0.2
|
||||||
|
|
||||||
|
branches:
|
||||||
|
master:
|
||||||
|
mode: ContinuousDeployment
|
||||||
|
regex: master
|
||||||
|
tag: dev
|
||||||
|
increment: Minor
|
||||||
|
|
||||||
|
pull-request:
|
||||||
|
regex: ^(pull|pull\-requests|pr)[/-]
|
||||||
|
mode: ContinuousDeployment
|
||||||
|
tag: PullRequest
|
||||||
|
increment: Inherit
|
||||||
|
|
||||||
|
stable:
|
||||||
|
regex: release/stable/.*
|
||||||
|
tag: ''
|
||||||
|
increment: Patch
|
||||||
|
source-branches: ['master']
|
||||||
|
is-mainline: true
|
||||||
|
|
||||||
|
beta:
|
||||||
|
mode: ContinuousDeployment
|
||||||
|
regex: release/beta/.*
|
||||||
|
tag: 'beta'
|
||||||
|
increment: inherit
|
||||||
|
source-branches: ['master']
|
||||||
|
|
||||||
|
dev:
|
||||||
|
mode: ContinuousDeployment
|
||||||
|
regex: dev/.*?/(.*?)
|
||||||
|
tag: dev.{BranchName}
|
||||||
|
source-branches: ['master', 'release', 'projects', 'feature']
|
||||||
|
increment: inherit
|
||||||
|
|
||||||
|
projects:
|
||||||
|
tag: proj-{BranchName}
|
||||||
|
regex: projects/(.*?)
|
||||||
|
source-branches: ['master']
|
||||||
|
increment: inherit
|
||||||
|
|
||||||
|
feature:
|
||||||
|
tag: feature.{BranchName}
|
||||||
|
regex: feature/(.*?)
|
||||||
|
source-branches: ['master']
|
||||||
|
increment: inherit
|
||||||
|
|
||||||
|
ignore:
|
||||||
|
sha: []
|
|
@ -10,7 +10,8 @@
|
||||||
<assembly fullname="System.Collections"/>
|
<assembly fullname="System.Collections"/>
|
||||||
<assembly fullname="System.Core"/>
|
<assembly fullname="System.Core"/>
|
||||||
<assembly fullname="Uno.UI"/>
|
<assembly fullname="Uno.UI"/>
|
||||||
|
<assembly fullname="WebAssembly.Bindings" />
|
||||||
|
|
||||||
<assembly fullname="System.Core">
|
<assembly fullname="System.Core">
|
||||||
<!-- This is required by JSon.NET and any expression.Compile caller -->
|
<!-- This is required by JSon.NET and any expression.Compile caller -->
|
||||||
<type fullname="System.Linq.Expressions*" />
|
<type fullname="System.Linq.Expressions*" />
|
||||||
|
|
|
@ -6,7 +6,16 @@
|
||||||
<WasmHead>true</WasmHead>
|
<WasmHead>true</WasmHead>
|
||||||
<DefineConstants>$(DefineConstants);__WASM__</DefineConstants>
|
<DefineConstants>$(DefineConstants);__WASM__</DefineConstants>
|
||||||
<NoWarn>NU1701</NoWarn>
|
<NoWarn>NU1701</NoWarn>
|
||||||
|
|
||||||
|
<UseAOT Condition="$([MSBuild]::IsOsPlatform('Linux')) or ( $([MSBuild]::IsOsPlatform('Windows')) and '$(SkipWasmBuild)'=='' )">true</UseAOT>
|
||||||
|
<WasmShellMonoRuntimeExecutionMode Condition="'$(UseAOT)'!=''">InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode>
|
||||||
|
<!--<WasmShellEnableEmccProfiling>true</WasmShellEnableEmccProfiling>-->
|
||||||
|
<!--<WasmShellGenerateAOTProfile>true</WasmShellGenerateAOTProfile>-->
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition="'$(UseAOT)'!=''">
|
||||||
|
<WasmShellEnableAotProfile Include="aot-full.profile" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="WasmCSS\Fonts.css" />
|
<EmbeddedResource Include="WasmCSS\Fonts.css" />
|
||||||
|
@ -19,13 +28,12 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1366" />
|
<PackageReference Include="Uno.UI" Version="3.0.0-dev.78" />
|
||||||
<PackageReference Include="Uno.UI.Sample.Banner" Version="1.44.0-dev.16" />
|
<PackageReference Include="Uno.UI.Sample.Banner" Version="1.44.0-dev.23" />
|
||||||
<PackageReference Include="Uno.Wasm.Bootstrap" Version="1.0.0-dev.265" />
|
<PackageReference Include="Uno.Wasm.Bootstrap" Version="1.3.0-dev.10" />
|
||||||
|
<PackageReference Include="Uno.Wasm.Bootstrap.Devserver" Version="1.3.0-dev.10" />
|
||||||
<PackageReference Include="Microsoft.TypeScript.Compiler" Version="2.8.3" />
|
<PackageReference Include="Microsoft.TypeScript.Compiler" Version="2.8.3" />
|
||||||
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="2.8.3" />
|
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="2.8.3" />
|
||||||
|
|
||||||
<DotNetCliToolReference Include="Uno.Wasm.Bootstrap.Cli" Version="1.0.0-dev.265" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче