feat: Enable PGAOT
This commit is contained in:
Родитель
6868110111
Коммит
1d283e8c23
81
.vsts-ci.yml
81
.vsts-ci.yml
|
@ -1,44 +1,67 @@
|
|||
phases:
|
||||
- phase: VS_Latest
|
||||
jobs:
|
||||
- job: VS_Latest
|
||||
container: unoplatform/wasm-build:2.0
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
variables:
|
||||
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
|
||||
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)\.nuget-http-cache
|
||||
SourceLinkEnabled: false
|
||||
DotnetRuntimePath: /usr/share/dotnet
|
||||
|
||||
steps:
|
||||
- task: GitVersion@3
|
||||
inputs:
|
||||
updateAssemblyInfo: false
|
||||
|
||||
- task: NuGetToolInstaller@0
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Use .Net Core runtime 2.2.x'
|
||||
inputs:
|
||||
versionSpec: 4.7.0
|
||||
checkLatest: false
|
||||
packageType: runtime
|
||||
version: 2.2.x
|
||||
installationPath: '$(DotnetRuntimePath)'
|
||||
|
||||
- task: NuGetCommand@2
|
||||
inputs:
|
||||
command: restore
|
||||
solution: Quoter.sln
|
||||
selectOrConfig: select
|
||||
includeNuGetOrg: true
|
||||
verbosityRestore: Normal
|
||||
|
||||
- task: MSBuild@1
|
||||
- task: nventiveCanaryUpdater@5
|
||||
displayName: 'Canary Update'
|
||||
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
|
||||
inputs:
|
||||
solution: Quoter.sln
|
||||
msbuildLocationMethod: version
|
||||
msbuildVersion: latest
|
||||
msbuildArchitecture: x86
|
||||
msbuildArguments: /r /p:Configuration=Release "/p:PackageVersion=%GITVERSION_FullSemVer%" "/p:InformationalVersion=%GITVERSION_InformationalVersion%" /detailedsummary
|
||||
clean: false
|
||||
maximumCpuCount: true
|
||||
restoreNugetPackages: false
|
||||
logProjectEvents: false
|
||||
createLogFile: false
|
||||
branchToMerge: uno
|
||||
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
|
||||
resultFile: '$(Build.ArtifactStagingDirectory)/result.json'
|
||||
nugetUpdaterVersion: 2.0.6
|
||||
packageAuthor: nventive
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: 'Use .Net Core runtime 2.1.0'
|
||||
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
|
||||
displayName: Publish Package Artifacts
|
||||
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
|
||||
artifactName: RoslynQuoter-Wasm
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26430.16
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30114.128
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Quoter", "src\Quoter\Quoter.csproj", "{927AB47F-479C-423A-B21F-5DEC48533E1D}"
|
||||
EndProject
|
||||
|
@ -21,6 +21,7 @@ Global
|
|||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||
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*{a706d15c-b407-42a2-b6e3-b6f88ba24e7e}*SharedItemsImports = 5
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
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,6 +10,7 @@
|
|||
<assembly fullname="System.Collections"/>
|
||||
<assembly fullname="System.Core"/>
|
||||
<assembly fullname="Uno.UI"/>
|
||||
<assembly fullname="WebAssembly.Bindings" />
|
||||
|
||||
<assembly fullname="System.Core">
|
||||
<!-- This is required by JSon.NET and any expression.Compile caller -->
|
||||
|
|
|
@ -6,8 +6,17 @@
|
|||
<WasmHead>true</WasmHead>
|
||||
<DefineConstants>$(DefineConstants);__WASM__</DefineConstants>
|
||||
<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>
|
||||
|
||||
<ItemGroup Condition="'$(UseAOT)'!=''">
|
||||
<WasmShellEnableAotProfile Include="aot-full.profile" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="WasmCSS\Fonts.css" />
|
||||
<EmbeddedResource Include="WasmScripts\*.js" />
|
||||
|
@ -19,13 +28,12 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Uno.UI" Version="1.45.0-dev.1366" />
|
||||
<PackageReference Include="Uno.UI.Sample.Banner" Version="1.44.0-dev.16" />
|
||||
<PackageReference Include="Uno.Wasm.Bootstrap" Version="1.0.0-dev.265" />
|
||||
<PackageReference Include="Uno.UI" Version="3.0.0-dev.78" />
|
||||
<PackageReference Include="Uno.UI.Sample.Banner" Version="1.44.0-dev.23" />
|
||||
<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.MSBuild" Version="2.8.3" />
|
||||
|
||||
<DotNetCliToolReference Include="Uno.Wasm.Bootstrap.Cli" Version="1.0.0-dev.265" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче