diff --git a/.azure-pipelines/shared/build_linux.yml b/.azure-pipelines/shared/build_linux.yml index ae45f038..339a18e3 100644 --- a/.azure-pipelines/shared/build_linux.yml +++ b/.azure-pipelines/shared/build_linux.yml @@ -18,15 +18,13 @@ parameters: steps: - checkout: self lfs: true - - script: | - rm -rf ${{ parameters.sourceDir }}/${{ parameters.buildDir }} - mkdir -p ${{ parameters.sourceDir }}/${{ parameters.buildDir }} - displayName: "Clean up and create new build directory" + - script: "rm -rf ${{ parameters.sourceDir }}/${{ parameters.buildDir }}" + displayName: "Clean up build directory" - - script: cmake -G Ninja .. -DCMAKE_BUILD_TYPE=${{ parameters.buildType }} ${{ parameters.cmakeArgs }} - workingDirectory: ${{ parameters.sourceDir }}/${{ parameters.buildDir }} + - script: "cmake -G Ninja -S . -B ${{ parameters.buildDir }} -DCMAKE_BUILD_TYPE=${{ parameters.buildType }} ${{ parameters.cmakeArgs }}" + workingDirectory: "${{ parameters.sourceDir }}" displayName: "Generate build system" - - script: ninja - workingDirectory: ${{ parameters.sourceDir }}/${{ parameters.buildDir }} + - script: "ninja -C ${{ parameters.buildDir }}" + workingDirectory: "${{ parameters.sourceDir }}" displayName: "Compile"