Uno.RoslynQuoter/.vsts-ci.yml

68 строки
1.9 KiB
YAML
Исходник Обычный вид История

2020-05-25 23:44:43 +03:00
jobs:
- job: VS_Latest
container: unoplatform/wasm-build:2.0
pool:
vmImage: 'ubuntu-latest'
2018-07-11 15:47:03 +03:00
variables:
SourceLinkEnabled: false
2020-05-25 23:44:43 +03:00
DotnetRuntimePath: /usr/share/dotnet
2018-07-11 15:47:03 +03:00
steps:
2020-05-25 23:44:43 +03:00
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 2.2.x'
2018-07-11 15:47:03 +03:00
inputs:
2020-05-25 23:44:43 +03:00
packageType: runtime
version: 2.2.x
installationPath: '$(DotnetRuntimePath)'
2018-07-11 15:47:03 +03:00
2020-05-25 23:44:43 +03:00
- task: nventiveCanaryUpdater@5
displayName: 'Canary Update'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
2018-07-11 15:47:03 +03:00
inputs:
2018-07-11 15:49:55 +03:00
solution: Quoter.sln
2020-05-25 23:44:43 +03:00
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)'
2018-07-11 15:47:03 +03:00
2020-05-25 23:44:43 +03:00
- task: GitVersion@5
2018-07-11 15:47:03 +03:00
inputs:
2020-05-25 23:44:43 +03:00
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'
2018-07-11 15:47:03 +03:00
2018-07-11 15:49:55 +03:00
- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
inputs:
2020-05-25 23:44:43 +03:00
pathToPublish: $(build.sourcesdirectory)/src/uno/RoslynQuoter.Wasm/bin/Release/netstandard2.0/dist
2018-07-11 15:49:55 +03:00
artifactType: container
2018-07-11 16:34:14 +03:00
artifactName: RoslynQuoter-Wasm