summaryrefslogtreecommitdiff
path: root/.ci/templates
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-10-05 00:09:11 -0400
committerGravatar Zach Hilman2019-10-05 00:09:11 -0400
commitd45ad75404e75d2d4fbf3cc0d01d4a01cda1dabb (patch)
treeab25815c1ade5a487b4b8f59d76a2a36ed6bda17 /.ci/templates
parentMerge pull request #2917 from FernandoS27/fermi-deduction-2 (diff)
downloadyuzu-d45ad75404e75d2d4fbf3cc0d01d4a01cda1dabb.tar.gz
yuzu-d45ad75404e75d2d4fbf3cc0d01d4a01cda1dabb.tar.xz
yuzu-d45ad75404e75d2d4fbf3cc0d01d4a01cda1dabb.zip
ci: Add version counter variable
Diffstat (limited to '.ci/templates')
-rw-r--r--.ci/templates/build-msvc.yml3
-rw-r--r--.ci/templates/build-single.yml3
-rw-r--r--.ci/templates/build-standard.yml6
-rw-r--r--.ci/templates/build-testing.yml4
4 files changed, 13 insertions, 3 deletions
diff --git a/.ci/templates/build-msvc.yml b/.ci/templates/build-msvc.yml
index 906afa382..b44a08247 100644
--- a/.ci/templates/build-msvc.yml
+++ b/.ci/templates/build-msvc.yml
@@ -1,9 +1,10 @@
1parameters: 1parameters:
2 artifactSource: 'true' 2 artifactSource: 'true'
3 cache: 'false' 3 cache: 'false'
4 version: ''
4 5
5steps: 6steps:
6- script: mkdir build && cd build && set DATE=`date '+%Y.%m.%d'` && set CI=true && set AZURE_REPO_NAME=yuzu-emu/yuzu-$(BuildName) && set AZURE_REPO_TAG=$(BuildName)-$DATE && cmake -G "Visual Studio 15 2017 Win64" --config Release -DYUZU_USE_BUNDLED_QT=1 -DYUZU_USE_BUNDLED_SDL2=1 -DYUZU_USE_BUNDLED_UNICORN=1 -DYUZU_USE_QT_WEB_ENGINE=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${COMPAT} -DUSE_DISCORD_PRESENCE=ON .. && cd .. 7- script: mkdir build && cd build && cmake -G "Visual Studio 15 2017 Win64" --config Release -DYUZU_USE_BUNDLED_QT=1 -DYUZU_USE_BUNDLED_SDL2=1 -DYUZU_USE_BUNDLED_UNICORN=1 -DYUZU_USE_QT_WEB_ENGINE=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${COMPAT} -DUSE_DISCORD_PRESENCE=ON -DDISPLAY_VERSION=${{ parameters['version'] }} .. && cd ..
7 displayName: 'Configure CMake' 8 displayName: 'Configure CMake'
8- task: MSBuild@1 9- task: MSBuild@1
9 displayName: 'Build' 10 displayName: 'Build'
diff --git a/.ci/templates/build-single.yml b/.ci/templates/build-single.yml
index 002f5d24f..7b27693be 100644
--- a/.ci/templates/build-single.yml
+++ b/.ci/templates/build-single.yml
@@ -1,6 +1,7 @@
1parameters: 1parameters:
2 artifactSource: 'true' 2 artifactSource: 'true'
3 cache: 'false' 3 cache: 'false'
4 version: ''
4 5
5steps: 6steps:
6- task: DockerInstaller@0 7- task: DockerInstaller@0
@@ -13,7 +14,7 @@ steps:
13 key: yuzu-v1-$(BuildName)-$(BuildSuffix)-$(CacheSuffix) 14 key: yuzu-v1-$(BuildName)-$(BuildSuffix)-$(CacheSuffix)
14 path: $(System.DefaultWorkingDirectory)/ccache 15 path: $(System.DefaultWorkingDirectory)/ccache
15 cacheHitVar: CACHE_RESTORED 16 cacheHitVar: CACHE_RESTORED
16- script: export DATE=`date '+%Y.%m.%d'` && export CI=true && export AZURE_REPO_NAME=yuzu-emu/yuzu-$(BuildName) && export AZURE_REPO_TAG=$(BuildName)-$DATE && chmod a+x ./.ci/scripts/$(ScriptFolder)/exec.sh && ./.ci/scripts/$(ScriptFolder)/exec.sh 17- script: chmod a+x ./.ci/scripts/$(ScriptFolder)/exec.sh && ./.ci/scripts/$(ScriptFolder)/exec.sh ${{ parameters['version'] }}
17 displayName: 'Build' 18 displayName: 'Build'
18- script: chmod a+x ./.ci/scripts/$(ScriptFolder)/upload.sh && RELEASE_NAME=$(BuildName) ./.ci/scripts/$(ScriptFolder)/upload.sh 19- script: chmod a+x ./.ci/scripts/$(ScriptFolder)/upload.sh && RELEASE_NAME=$(BuildName) ./.ci/scripts/$(ScriptFolder)/upload.sh
19 displayName: 'Package Artifacts' 20 displayName: 'Package Artifacts'
diff --git a/.ci/templates/build-standard.yml b/.ci/templates/build-standard.yml
index aa180894e..7422c8346 100644
--- a/.ci/templates/build-standard.yml
+++ b/.ci/templates/build-standard.yml
@@ -1,3 +1,6 @@
1parameters:
2 version: ''
3
1jobs: 4jobs:
2- job: build 5- job: build
3 displayName: 'standard' 6 displayName: 'standard'
@@ -20,4 +23,5 @@ jobs:
20 - template: ./build-single.yml 23 - template: ./build-single.yml
21 parameters: 24 parameters:
22 artifactSource: 'false' 25 artifactSource: 'false'
23 cache: $(parameters.cache) \ No newline at end of file 26 cache: $(parameters.cache)
27 version: $(parameters.version) \ No newline at end of file
diff --git a/.ci/templates/build-testing.yml b/.ci/templates/build-testing.yml
index 4c9625944..30c8aaac3 100644
--- a/.ci/templates/build-testing.yml
+++ b/.ci/templates/build-testing.yml
@@ -1,3 +1,6 @@
1parameters:
2 version: ''
3
1jobs: 4jobs:
2- job: build_test 5- job: build_test
3 displayName: 'testing' 6 displayName: 'testing'
@@ -31,3 +34,4 @@ jobs:
31 parameters: 34 parameters:
32 artifactSource: 'false' 35 artifactSource: 'false'
33 cache: 'false' 36 cache: 'false'
37 version: $(parameters.version) \ No newline at end of file