mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[vcpkg] Add disk space report on Linux and MacOS. (#11166)
This commit is contained in:
parent
cfc05991f5
commit
63e1d87432
@ -6,14 +6,20 @@ jobs:
|
||||
- job: x64_linux
|
||||
pool:
|
||||
name: ${{ parameters.poolName }}
|
||||
|
||||
timeoutInMinutes: 1440 # 1 day
|
||||
|
||||
steps:
|
||||
- bash: |
|
||||
df -h
|
||||
displayName: 'Report on Disk Space Before Environment'
|
||||
condition: always()
|
||||
- task: Bash@3
|
||||
displayName: 'Initialize Environment'
|
||||
inputs:
|
||||
filePath: scripts/azure-pipelines/linux/initialize-environment.sh
|
||||
- bash: |
|
||||
df -h
|
||||
displayName: 'Report on Disk Space After Environment'
|
||||
condition: always()
|
||||
- task: Bash@3
|
||||
displayName: 'Build vcpkg'
|
||||
inputs:
|
||||
@ -31,6 +37,10 @@ jobs:
|
||||
failOnStderr: true
|
||||
filePath: 'scripts/azure-pipelines/analyze-test-results.ps1'
|
||||
arguments: '-baselineFile $(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt -logDir "$(System.ArtifactsDirectory)/xml-results" -outputDir "$(Build.ArtifactStagingDirectory)" -failurelogDir "archives/fail" -triplets "x64-linux" -errorOnRegression'
|
||||
- bash: |
|
||||
df -h
|
||||
displayName: 'Report on Disk Space After Build'
|
||||
condition: always()
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Artifact: x86-linux Build Failure Logs'
|
||||
inputs:
|
||||
|
@ -7,10 +7,12 @@ jobs:
|
||||
pool:
|
||||
name: vcpkgAgentPool
|
||||
demands: Agent.OS -equals Darwin
|
||||
|
||||
timeoutInMinutes: 1440 # 1 day
|
||||
|
||||
steps:
|
||||
- bash: |
|
||||
df -h
|
||||
displayName: 'Report on Disk Space Before Environment'
|
||||
condition: always()
|
||||
- bash: |
|
||||
rm -rf installed || true
|
||||
mkdir -p ~/Data/installed || true
|
||||
@ -38,15 +40,16 @@ jobs:
|
||||
#delete downloaded files that have not been used in 7 days
|
||||
find downloads/ -maxdepth 1 -type f ! -atime 7 -exec rm -f {} \;
|
||||
fi
|
||||
|
||||
displayName: 'Setup Environment'
|
||||
|
||||
- bash: |
|
||||
brew list autoconf || brew install autoconf
|
||||
brew list automake || brew install automake
|
||||
brew list libtool || brew install libtool
|
||||
displayName: 'Install brew dependencies'
|
||||
|
||||
- bash: |
|
||||
df -h
|
||||
displayName: 'Report on Disk Space After Environment'
|
||||
condition: always()
|
||||
- task: Bash@3
|
||||
displayName: 'Build vcpkg'
|
||||
inputs:
|
||||
@ -57,14 +60,16 @@ jobs:
|
||||
mkdir $(System.ArtifactsDirectory)/xml-results
|
||||
./vcpkg ci x64-osx --x-xunit="$(System.ArtifactsDirectory)/xml-results/x64-osx.xml" --exclude=$skip_list --binarycaching
|
||||
displayName: '** Test Modified Ports **'
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Analyze results and prepare test logs'
|
||||
inputs:
|
||||
failOnStderr: true
|
||||
filePath: 'scripts/azure-pipelines/analyze-test-results.ps1'
|
||||
arguments: '-baselineFile $(System.DefaultWorkingDirectory)/scripts/ci.baseline.txt -logDir "$(System.ArtifactsDirectory)/xml-results" -outputDir "$(Build.ArtifactStagingDirectory)" -failurelogDir ~/Data/archives/fail -triplets "x64-osx" -errorOnRegression'
|
||||
|
||||
- bash: |
|
||||
df -h
|
||||
displayName: 'Report on Disk Space After Build'
|
||||
condition: always()
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Artifact: x64-osx port build failure logs'
|
||||
inputs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user