summaryrefslogtreecommitdiff
path: root/azure-pipelines/templates/release.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines/templates/release.yml')
-rw-r--r--azure-pipelines/templates/release.yml50
1 files changed, 27 insertions, 23 deletions
diff --git a/azure-pipelines/templates/release.yml b/azure-pipelines/templates/release.yml
index b9a559726..60e2ff5fd 100644
--- a/azure-pipelines/templates/release.yml
+++ b/azure-pipelines/templates/release.yml
@@ -22,9 +22,9 @@ jobs:
# Copy back release_date, as it is needed for the template 'release-bundles'
cp openttd-$(Build.BuildNumber)/.release_date .release_date
- mkdir bundles
- tar --xz -cf bundles/openttd-$(Build.BuildNumber)-source.tar.xz openttd-$(Build.BuildNumber)
- zip -9 -r -q bundles/openttd-$(Build.BuildNumber)-source.zip openttd-$(Build.BuildNumber)
+ mkdir -p build/bundles
+ tar --xz -cf build/bundles/openttd-$(Build.BuildNumber)-source.tar.xz openttd-$(Build.BuildNumber)
+ zip -9 -r -q build/bundles/openttd-$(Build.BuildNumber)-source.zip openttd-$(Build.BuildNumber)
displayName: 'Create bundle'
- template: release-bundles.yml
@@ -39,10 +39,10 @@ jobs:
- script: |
set -ex
- mkdir -p bundles
- cp .changelog bundles/changelog.txt
- cp .release_date bundles/released.txt
- cp README.md bundles/README.md
+ mkdir -p build/bundles
+ cp .changelog build/bundles/changelog.txt
+ cp .release_date build/bundles/released.txt
+ cp README.md build/bundles/README.md
displayName: 'Copy meta files'
- template: release-bundles.yml
parameters:
@@ -73,33 +73,33 @@ jobs:
strategy:
matrix:
Win32:
- BuildPlatform: 'Win32'
BundlePlatform: 'win32'
+ BuildArch: 'Win32'
+ VcpkgTargetTriplet: 'x86-windows-static'
Win64:
- BuildPlatform: 'x64'
BundlePlatform: 'win64'
+ BuildArch: 'x64'
+ VcpkgTargetTriplet: 'x64-windows-static'
steps:
- template: release-fetch-source.yml
- template: windows-dependencies.yml
- template: windows-dependency-zip.yml
- - ${{ if eq(parameters.IsStableRelease, true) }}:
- - template: windows-dependency-nsis.yml
- template: windows-build.yml
parameters:
- BuildPlatform: $(BuildPlatform)
- BuildConfiguration: Release
+ BuildArch: $(BuildArch)
+ VcpkgTargetTriplet: $(VcpkgTargetTriplet)
+ BuildConfiguration: 'RelWithDebInfo'
+ - task: VSBuild@1
+ displayName: 'Create bundles'
+ inputs:
+ solution: build/PACKAGE.vcxproj
+ configuration: 'RelWithDebInfo'
- bash: |
set -ex
- make -f Makefile.msvc bundle_pdb bundle_zip PLATFORM=$(BundlePlatform) BUNDLE_NAME=openttd-$(Build.BuildNumber)-windows-$(BundlePlatform)
- displayName: 'Create bundles'
- - ${{ if eq(parameters.IsStableRelease, true) }}:
- - bash: |
- set -ex
- # NSIS will be part of the Hosted image in the next update. Till then, we set the PATH ourself
- export PATH="${PATH}:/c/Program Files (x86)/NSIS"
- make -f Makefile.msvc bundle_exe PLATFORM=$(BundlePlatform) BUNDLE_NAME=openttd-$(Build.BuildNumber)-windows-$(BundlePlatform)
- displayName: 'Create installer bundle'
+
+ cp build/RelWithDebInfo/openttd.pdb build/bundles/openttd-$(Build.BuildNumber)-windows-$(BundlePlatform).pdb
+ displayName: 'Copy PDB to bundles folder'
- template: release-bundles.yml
- ${{ if eq(parameters.IsStableRelease, true) }}:
@@ -153,7 +153,11 @@ jobs:
- template: release-fetch-source.yml
- template: osx-dependencies.yml
- template: osx-build.yml
- - script: 'make bundle_zip bundle_dmg BUNDLE_NAME=openttd-$(Build.BuildNumber)-macosx'
+ - script: |
+ set -ex
+
+ cd build
+ make package
displayName: 'Create bundles'
- template: release-bundles.yml