summaryrefslogtreecommitdiffstats
path: root/.ci/templates
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-07-28 20:21:18 +0200
committerZach Hilman <zachhilman@gmail.com>2019-07-28 20:21:18 +0200
commitbcbec6f37c7660780e5862cda20634bf4f4db139 (patch)
tree6a1824569d769eee1a46d63ba6921c263ecb1e0a /.ci/templates
parentMerge pull request #2592 from FernandoS27/sync1 (diff)
downloadyuzu-bcbec6f37c7660780e5862cda20634bf4f4db139.tar
yuzu-bcbec6f37c7660780e5862cda20634bf4f4db139.tar.gz
yuzu-bcbec6f37c7660780e5862cda20634bf4f4db139.tar.bz2
yuzu-bcbec6f37c7660780e5862cda20634bf4f4db139.tar.lz
yuzu-bcbec6f37c7660780e5862cda20634bf4f4db139.tar.xz
yuzu-bcbec6f37c7660780e5862cda20634bf4f4db139.tar.zst
yuzu-bcbec6f37c7660780e5862cda20634bf4f4db139.zip
Diffstat (limited to '.ci/templates')
-rw-r--r--.ci/templates/build-single.yml14
-rw-r--r--.ci/templates/build-standard.yml3
-rw-r--r--.ci/templates/build-testing.yml1
3 files changed, 11 insertions, 7 deletions
diff --git a/.ci/templates/build-single.yml b/.ci/templates/build-single.yml
index c411e25d1..ec5d1e3c6 100644
--- a/.ci/templates/build-single.yml
+++ b/.ci/templates/build-single.yml
@@ -1,17 +1,19 @@
parameters:
artifactSource: 'true'
+ cache: 'false'
steps:
- task: DockerInstaller@0
displayName: 'Prepare Environment'
inputs:
dockerVersion: '17.09.0-ce'
-- task: CacheBeta@0
- displayName: 'Cache Build System'
- inputs:
- key: yuzu-v1-$(BuildName)-$(BuildSuffix)-$(CacheSuffix)
- path: $(System.DefaultWorkingDirectory)/ccache
- cacheHitVar: CACHE_RESTORED
+- ${{ if eq(parameterscache, 'true') }}:
+ - task: CacheBeta@0
+ displayName: 'Cache Build System'
+ inputs:
+ key: yuzu-v1-$(BuildName)-$(BuildSuffix)-$(CacheSuffix)
+ path: $(System.DefaultWorkingDirectory)/ccache
+ cacheHitVar: CACHE_RESTORED
- script: chmod a+x ./.ci/scripts/$(ScriptFolder)/exec.sh && ./.ci/scripts/$(ScriptFolder)/exec.sh
displayName: 'Build'
- script: chmod a+x ./.ci/scripts/$(ScriptFolder)/upload.sh && RELEASE_NAME=$(BuildName) ./.ci/scripts/$(ScriptFolder)/upload.sh
diff --git a/.ci/templates/build-standard.yml b/.ci/templates/build-standard.yml
index 6cd209dbf..aa180894e 100644
--- a/.ci/templates/build-standard.yml
+++ b/.ci/templates/build-standard.yml
@@ -19,4 +19,5 @@ jobs:
needSubmodules: 'true'
- template: ./build-single.yml
parameters:
- artifactSource: 'false' \ No newline at end of file
+ artifactSource: 'false'
+ cache: $(parameters.cache) \ No newline at end of file
diff --git a/.ci/templates/build-testing.yml b/.ci/templates/build-testing.yml
index cb7736205..f024a0058 100644
--- a/.ci/templates/build-testing.yml
+++ b/.ci/templates/build-testing.yml
@@ -30,3 +30,4 @@ jobs:
- template: ./build-single.yml
parameters:
artifactSource: 'false'
+ cache: 'false'