aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2019-09-22 18:14:08 -0600
committerGitHub <noreply@github.com>2019-09-22 18:14:08 -0600
commit2f5545f8de907d1e58b65d4f75b4403628d6a136 (patch)
tree27fcf6c5f21e1c28ef0887b1ca68cce4bbd770aa
parentcc3db2aa43ee617ed5086976e0354c72feba713c (diff)
parent921dae5e831e015fb3dc947983c5333feeb75dcb (diff)
Merge pull request #2901 from DarkLordZach/mainline-title-bar
ci: Properly parse Azure CI details in title bar
-rw-r--r--.ci/templates/build-single.yml2
-rw-r--r--src/common/CMakeLists.txt3
2 files changed, 5 insertions, 0 deletions
diff --git a/.ci/templates/build-single.yml b/.ci/templates/build-single.yml
index cd9d1df88c..9bc27247e5 100644
--- a/.ci/templates/build-single.yml
+++ b/.ci/templates/build-single.yml
@@ -3,6 +3,8 @@ parameters:
cache: 'false'
steps:
+- script: export DATE=`date '+%Y.%m.%d'` && export CI=true && AZURE_REPO_NAME=yuzu-emu/yuzu-$(BuildName) && AZURE_REPO_TAG=$(BuildName)-$DATE
+ displayName: 'Determine Build Name'
- task: DockerInstaller@0
displayName: 'Prepare Environment'
inputs:
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 01abdb3bb5..dfed8b51dc 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -10,6 +10,9 @@ if (DEFINED ENV{CI})
elseif(DEFINED ENV{APPVEYOR})
set(BUILD_REPOSITORY $ENV{APPVEYOR_REPO_NAME})
set(BUILD_TAG $ENV{APPVEYOR_REPO_TAG_NAME})
+ elseif(DEFINED ENV{AZURE})
+ set(BUILD_REPOSITORY $ENV{AZURE_REPO_NAME})
+ set(BUILD_TAG $ENV{AZURE_REPO_TAG})
endif()
endif()
add_custom_command(OUTPUT scm_rev.cpp