mesa/.gitlab-ci/windows
Karol Herbst 80c4ffb61a clover: drop support for nir drivers
People had enough time to migrate to rusticl, also nobody would support
this anyway anymore.

Acked-by: David Heidelberg <david@ixit.cz>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27783>
2024-11-08 12:49:23 +00:00
..
deqp_runner_run.ps1 ci/windows: Don't upload shader cache to artifacts 2024-09-03 18:41:50 +00:00
Dockerfile_build d3d12/ci: Add vainfo with appverifier CI check 2024-04-09 15:37:23 +00:00
Dockerfile_msvc ci/msvc: Improve msvc init 2023-12-24 11:46:43 +00:00
Dockerfile_test d3d12/ci: Add vainfo with appverifier CI check 2024-04-09 15:37:23 +00:00
mesa_build.ps1 clover: drop support for nir drivers 2024-11-08 12:49:23 +00:00
mesa_container.ps1 ci/windows: Use 2 container stages 2022-01-21 22:38:16 +00:00
mesa_deps_build.ps1 ci: replace plain meson with explicit meson setup 2024-11-07 14:48:41 +00:00
mesa_deps_choco.ps1 u_format: Rewrite format table to use YAML 2024-07-19 13:50:42 +00:00
mesa_deps_d3d.ps1 ci: Bump DirectX-Headers and Agility SDK dependencies to 1.614.1 2024-09-12 15:01:18 +00:00
mesa_deps_libva.ps1 ci: replace plain meson with explicit meson setup 2024-11-07 14:48:41 +00:00
mesa_deps_msvc.ps1 ci/msvc: Install both msvc2019 and msvc2022 2023-12-24 11:46:43 +00:00
mesa_deps_rust.ps1 ci/msvc: Split the install of rust and d3d out of mesa_deps_test.ps1 2023-12-24 11:46:43 +00:00
mesa_deps_test_deqp.ps1 ci/windows: Update VK-GL-CTS to d48899f85b486a70d090af59a1453763458611d9 2024-08-29 01:46:01 +00:00
mesa_deps_test_piglit.ps1 ci/windows: Rev Vulkan SDK and piglit 2024-01-19 05:16:23 +00:00
mesa_deps_test.ps1 ci/msvc: Split the install of rust and d3d out of mesa_deps_test.ps1 2023-12-24 11:46:43 +00:00
mesa_deps_vulkan_sdk.ps1 ci/windows: Rev Vulkan SDK and piglit 2024-01-19 05:16:23 +00:00
mesa_init_msvc.ps1 ci/windows: Use MSVC v143 build tools 2024-08-29 01:46:01 +00:00
piglit_run.ps1 d3d12: Set up spirv-as and fix expectations 2024-01-19 05:16:23 +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
vainfo_run.ps1 d3d12/ci: Add vainfo with appverifier CI check 2024-04-09 15:37:23 +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