Files
@ r23882:d683a0787bc9
Branch filter:
Location: cpp/openttd-patchpack/source/azure-pipelines/templates/linux-build.yml - annotation
r23882:d683a0787bc9
1.6 KiB
text/x-yaml
Codechange: Don't use SDL_CreateRGBSurfaceWithFormat()
This function requires libSDL 2.0.5 or higher. It looks like we don't
need to use it, and can just use the original SDL_CreateRGBSurface(),
with the masks set to 0, to trigger the default 8-bit format, which is
SDL_PIXELFORMAT_INDEX8.
Closes #7785
Note: this code path is activated by using an 8-bit blitter, like:
./bin/openttd -b 8bpp-simple
This function requires libSDL 2.0.5 or higher. It looks like we don't
need to use it, and can just use the original SDL_CreateRGBSurface(),
with the masks set to 0, to trigger the default 8-bit format, which is
SDL_PIXELFORMAT_INDEX8.
Closes #7785
Note: this code path is activated by using an 8-bit blitter, like:
./bin/openttd -b 8bpp-simple
r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23448:792baa509640 r23702:a30bc36d2983 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23144:9a2ff041af83 r23447:3bb8e6d9f279 r23447:3bb8e6d9f279 | parameters:
Image: ''
Tag: ''
ContainerCommand: ''
steps:
# 'envVars' in the 'Docker@1' task is a bit funky. When you want to use a
# variable, you have to quote it. But the quote is also sent directly to
# Docker and ends up in the variable, which you don't want. To work around
# this, we set the correct variable first (which becomes an env-variable), and
# pass that env-variable through to Docker. We cannot use the normal
# 'variables' entry, as we are a template. So that results in this bit of
# Bash code. Not because it is pretty, but it is the only way we found that
# works.
- bash: |
echo "##vso[task.setvariable variable=TARGET_BRANCH]${SYSTEM_PULLREQUEST_TARGETBRANCH}"
echo "Target branch is ${SYSTEM_PULLREQUEST_TARGETBRANCH}"
displayName: "Set target branch"
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
- task: Docker@1
${{ if eq(parameters.Image, 'compile-farm') }}:
displayName: 'Build'
${{ if eq(parameters.Image, 'compile-farm-ci') }}:
displayName: 'Build and test'
# Run the commit-checker only if it is a Pull Request
condition: and(succeeded(), or(not(contains(variables['Agent.JobName'], 'commit-checker')), eq(variables['Build.Reason'], 'PullRequest')))
inputs:
command: 'Run an image'
imageName: openttd/${{ parameters.Image }}:${{ parameters.Tag }}
volumes: '$(Build.SourcesDirectory):$(Build.SourcesDirectory)'
workingDirectory: '$(Build.SourcesDirectory)'
containerCommand: ${{ parameters.ContainerCommand }}
runInBackground: false
envVars: |
TARGET_BRANCH
|