Skip to content

Commit

Permalink
ci: Simplify azure pipelines linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Nov 22, 2023
1 parent 6b2db6d commit a47f48e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .azure-pipelines/shared/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit a47f48e

Please sign in to comment.