summaryrefslogtreecommitdiff
path: root/azure-pipelines/templates/ci-opengfx.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines/templates/ci-opengfx.yml')
-rw-r--r--azure-pipelines/templates/ci-opengfx.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/azure-pipelines/templates/ci-opengfx.yml b/azure-pipelines/templates/ci-opengfx.yml
index cdee9feca..60231e386 100644
--- a/azure-pipelines/templates/ci-opengfx.yml
+++ b/azure-pipelines/templates/ci-opengfx.yml
@@ -1,8 +1,13 @@
+parameters:
+ SharedFolder: '/usr/local/share/games/openttd'
+ PrefixCommand: ''
+
steps:
- bash: |
set -ex
- cd bin/baseset
- curl -L https://cdn.openttd.org/opengfx-releases/0.6.0/opengfx-0.6.0-all.zip > opengfx-all.zip
- unzip opengfx-all.zip
- rm -f opengfx-all.zip
+ ${{ parameters.PrefixCommand }} mkdir -p "${{ parameters.SharedFolder }}/baseset"
+ cd "${{ parameters.SharedFolder }}/baseset"
+ ${{ parameters.PrefixCommand }} curl -L https://cdn.openttd.org/opengfx-releases/0.6.0/opengfx-0.6.0-all.zip -o opengfx-all.zip
+ ${{ parameters.PrefixCommand }} unzip opengfx-all.zip
+ ${{ parameters.PrefixCommand }} rm -f opengfx-all.zip
displayName: 'Install OpenGFX'