Skip to content

Commit

Permalink
Clean upload dir and recompile debug build on release stage jl777#589
Browse files Browse the repository at this point in the history
  • Loading branch information
artemii235 committed Mar 2, 2020
1 parent b5ad65b commit c82f84d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions azure-pipelines-release-stage-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c82f84d

Please sign in to comment.