From c82f84db67e85270ec092efd1596d79dd5b50258 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Mon, 2 Mar 2020 20:41:28 +0700 Subject: [PATCH] Clean upload dir and recompile debug build on release stage #589 --- azure-pipelines-release-stage-job.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/azure-pipelines-release-stage-job.yml b/azure-pipelines-release-stage-job.yml index 74d0c6ed05..8609402e9a 100644 --- a/azure-pipelines-release-stage-job.yml +++ b/azure-pipelines-release-stage-job.yml @@ -27,6 +27,30 @@ jobs: displayName: Build Windows deps condition: and( eq( variables['Agent.OS'], 'Windows_NT' ), eq( variables['COMMIT_TAG'], '' ) ) - bash: | + rm -rf upload + displayName: 'Clean upload dir' + - bash: | + mkdir upload + echo 2.0.$(Build.BuildId)_$(Build.SourceBranchName)_$(COMMIT_HASH)_$(Agent.OS)_Debug > MM_VERSION + cat MM_VERSION + touch mm2src/common/build.rs + cargo build --features native -vv + displayName: 'Build MM2 Debug' + - bash: | + zip upload/mm2-$(COMMIT_HASH)-$(Agent.OS)-Debug target/debug/mm2 -j + displayName: 'Prepare debug build upload Linux' + condition: eq( variables['Agent.OS'], 'Linux' ) + - bash: | + cd target/debug + zip ../../upload/mm2-$(COMMIT_HASH)-$(Agent.OS)-Debug mm2.dSYM mm2 -r + displayName: 'Prepare debug build upload MacOS' + condition: eq( variables['Agent.OS'], 'Darwin' ) + - powershell: | + 7z a .\upload\mm2-$(COMMIT_HASH)-$(Agent.OS)-Debug.zip .\target\debug\mm2.exe .\target\debug\*.dll "$Env:windir\system32\msvcr100.dll" "$Env:windir\system32\msvcp140.dll" "$Env:windir\system32\vcruntime140.dll" + displayName: 'Prepare debug build upload Windows' + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + - bash: | + rm -f MM_VERSION echo 2.0.$(Build.BuildId)_$(Build.SourceBranchName)_$(COMMIT_HASH)_$(Agent.OS)_Release > MM_VERSION cat MM_VERSION touch mm2src/common/build.rs