Skip to content

Commit

Permalink
Move 'variables' to job level
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Grundkiewicz committed Sep 11, 2020
1 parent 0f1cab6 commit 9629115
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ stages:
pool:
vmImage: $(image)

variables:
# The variable 'gpu' is true if 'cuda' is specified, false otherwise
gpu: $[ne(variables["cuda"], "")]

steps:
- checkout: self
submodules: true
Expand Down Expand Up @@ -247,9 +251,6 @@ stages:
-DBOOST_ROOT=$BOOST_ROOT_1_69_0 -DBOOST_INCLUDEDIR=$BOOST_ROOT_1_69_0/include -DBOOST_LIBRARYDIR=$BOOST_ROOT_1_69_0/lib \
-DBoost_ARCHITECTURE=-x64 \
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-$(cuda)
variables:
# The variable 'gpu' is true if 'cuda' is specified, false otherwise
gpu: $[ne(variables["cuda"], "")]
displayName: Configure CMake
- bash: make -j3
Expand Down

0 comments on commit 9629115

Please sign in to comment.