summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2019-09-23 02:14:08 +0200
committerGitHub <noreply@github.com>2019-09-23 02:14:08 +0200
commit2f5545f8de907d1e58b65d4f75b4403628d6a136 (patch)
tree27fcf6c5f21e1c28ef0887b1ca68cce4bbd770aa
parentci: Split mainline pipeline and add support for GitHub releases (#2900) (diff)
parentci: Correct GitHub Release name (diff)
downloadyuzu-2f5545f8de907d1e58b65d4f75b4403628d6a136.tar
yuzu-2f5545f8de907d1e58b65d4f75b4403628d6a136.tar.gz
yuzu-2f5545f8de907d1e58b65d4f75b4403628d6a136.tar.bz2
yuzu-2f5545f8de907d1e58b65d4f75b4403628d6a136.tar.lz
yuzu-2f5545f8de907d1e58b65d4f75b4403628d6a136.tar.xz
yuzu-2f5545f8de907d1e58b65d4f75b4403628d6a136.tar.zst
yuzu-2f5545f8de907d1e58b65d4f75b4403628d6a136.zip
-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 cd9d1df88..9bc27247e 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 01abdb3bb..dfed8b51d 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