mesa/.gitlab-ci/windows
Sil Vilerino 7b22dd8bfd meson: add vp9 and av1 codec support options
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26223>
2023-11-20 17:19:00 +00:00
..
deqp_runner_run.ps1 ci/dzn: Run almost the full CTS 2023-04-25 15:36:01 +00:00
Dockerfile_build ci/vs2019: Split install of vs2019 and choco into separate Docker image 2022-06-14 21:14:34 +00:00
Dockerfile_test ci/windows: Use 2 container stages 2022-01-21 22:38:16 +00:00
Dockerfile_vs ci/vs2019: Split install of vs2019 and choco into separate Docker image 2022-06-14 21:14:34 +00:00
mesa_build.ps1 meson: add vp9 and av1 codec support options 2023-11-20 17:19:00 +00:00
mesa_container.ps1 ci/windows: Use 2 container stages 2022-01-21 22:38:16 +00:00
mesa_deps_build.ps1 CI/windows: Update headers and Agility redist to 1.711.3-preview 2023-06-27 23:16:37 +00:00
mesa_deps_choco.ps1 ci/windows: Install Graphics-Tools package on the base image 2022-08-09 21:46:52 +00:00
mesa_deps_test.ps1 ci/windows: Update WARP to 1.0.7.1 2023-05-31 16:20:15 +00:00
mesa_deps_vs2019.ps1 ci: Install the clang-cl compiler within mesa_deps_vs2019.ps1 2022-10-20 22:52:06 +00:00
mesa_vs_init.ps1 ci/vs2019: Add a dedicated script for entering VS dev shell 2022-06-14 21:14:33 +00:00
piglit_run.ps1 CI/windows: Apply CI_FDO_CONCURRENT to piglit too 2023-01-27 01:49:19 +00:00
README.md ci/vs2019: switch to powershell 7 2022-06-14 21:14:33 +00:00
spirv2dxil_check.ps1 ci/windows: Get DXIL.dll (and DXCompiler.dll) from GitHub and put it in System32 2022-11-03 23:54:45 +00:00
spirv2dxil_run.ps1 ci/windows: normalize line endings 2022-01-19 15:17:17 +00:00

Native Windows GitLab CI builds

Unlike Linux, Windows cannot reuse the freedesktop ci-templates as they exist as we do not have Podman, Skopeo, or even Docker-in-Docker builds available under Windows.

We still reuse the same model: build a base container with the core operating system and infrequently-changed build dependencies, then execute Mesa builds only inside that base container. This is open-coded in PowerShell scripts.

Base container build

The base container build job executes the mesa_container.ps1 script which reproduces the ci-templates behaviour. It looks for the registry image in the user's namespace, and exits if found. If not found, it tries to copy the same image tag from the upstream Mesa repository. If that is not found, the image is rebuilt inside the user's namespace.

The rebuild executes docker build which calls mesa_deps.ps1 inside the container to fetch and install all build dependencies. This includes Visual Studio Community Edition (downloaded from Microsoft, under the license which allows use by open-source projects), other build tools from Chocolatey, and finally Meson and Python dependencies from PyPI.

This job is executed inside a Windows shell environment directly inside the host, without Docker.

Mesa build

The Mesa build runs inside the base container, executing mesa_build.ps1. This simply compiles Mesa using Meson and Ninja, executing the build and unit tests. Currently, no build artifacts are captured.

Using build scripts locally

*.ps1 scripts for building dockers are using PowerShell 7 to run