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