Skip to content

Commit

Permalink
[CI] Make windows build on c:\ drive to fix out-of-disk-space errors (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Sep 8, 2020
1 parent 3b6faad commit a90d982
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ stages:
GENERATOR: 'Visual Studio 15 2017 Win64'
timeoutInMinutes: 0
variables:
BUILD_DIR: '$(Agent.WorkFolder)\build'
BUILD_DIR: 'c:\build'
CONFIGURATION: 'Release'
VCPKG_ROOT: 'C:\vcpkg'
steps:
Expand Down
20 changes: 10 additions & 10 deletions .ci/azure-pipelines/build/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@ steps:
- script: |
echo ##vso[task.prependpath]%BOOST_ROOT_1_69_0%\lib
displayName: 'Include Boost Libraries In System PATH'
- script: |
set
displayName: 'Print Environment Variables'
- pwsh: Get-PSDrive
displayName: "Check free space"
- script: |
vcpkg.exe install eigen3 flann gtest qhull --triplet %PLATFORM%-windows && vcpkg.exe list
displayName: 'Install C++ Dependencies Via Vcpkg'
- script: |
rmdir %VCPKG_ROOT%\downloads /S /Q
rmdir %VCPKG_ROOT%\packages /S /Q
displayName: 'Free Up Space'
- script: |
mkdir %BUILD_DIR% && cd %BUILD_DIR%
cmake $(Build.SourcesDirectory) ^
Expand All @@ -32,14 +27,19 @@ steps:
-DBUILD_tools=OFF ^
-DBUILD_surface_on_nurbs=ON
displayName: 'CMake Configuration'
- script: cd %BUILD_DIR% && cmake --build . --config %CONFIGURATION%
workingDirectory: 'c:'
- script: |
cd %BUILD_DIR% && cmake --build . --config %CONFIGURATION%
displayName: 'Build Library'
- script: cd %BUILD_DIR% && cmake --build . --target tests --config %CONFIGURATION%
workingDirectory: 'c:'
- script: |
cd %BUILD_DIR% && cmake --build . --target tests --config %CONFIGURATION%
displayName: 'Run Unit Tests'
workingDirectory: 'c:'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'CTest'
testResultsFiles: '**/Test*.xml'
searchFolder: '$(Agent.WorkFolder)\build'
searchFolder: '%BUILD_DIR%'
condition: succeededOrFailed()

0 comments on commit a90d982

Please sign in to comment.