From ed386c86e52be5f82c471b93579b9cb0db81c22d Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Wed, 29 Sep 2021 14:48:10 +0200
Subject: [PATCH] CI: add win64 targets built with ucrt

These are Win10 builds with a maximum API support of Windows 1809 = Redstone 5.

We use the LLVM "UWP" image as it's the one with UCRT runtime by default. It's
not tied to UWP API's only.

Only the C runtime is different compared to the win64 LLVM builds we already have.
---
 extras/ci/gitlab-ci.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/extras/ci/gitlab-ci.yml b/extras/ci/gitlab-ci.yml
index ab90dd3a7d71..b6b4415cc845 100644
--- a/extras/ci/gitlab-ci.yml
+++ b/extras/ci/gitlab-ci.yml
@@ -166,6 +166,16 @@ win64-llvm:
         <<: *variables-win64
         WINE_SDK_PATH: /usr/include/wine/wine/windows/
 
+win64-ucrt-llvm:
+    extends: .win-common
+    image:
+        name: $VLC_UWP_LLVM_IMAGE
+    variables:
+        <<: *variables-win64
+        WINE_SDK_PATH: /usr/include/wine/wine/windows/
+        TRIPLET: $HOST_ARCH-ucrt-w64-mingw32
+        UWP_EXTRA_BUILD_FLAGS: -u -x -S 0x0A000006
+
 uwp64-libvlc-llvm:
     extends: .win-common
     image:
@@ -218,6 +228,16 @@ nightly-win64-llvm:
         <<: *variables-win64
         WINE_SDK_PATH: /usr/include/wine/wine/windows/
 
+nightly-win64-ucrt-llvm:
+    extends: .nightly-win-common
+    image:
+        name: $VLC_UWP_LLVM_IMAGE
+    variables:
+        <<: *variables-win64
+        WINE_SDK_PATH: /usr/include/wine/wine/windows/
+        TRIPLET: $HOST_ARCH-ucrt-w64-mingw32
+        UWP_EXTRA_BUILD_FLAGS: -u -x -S 0x0A000006
+
 #
 # Debian
 #
-- 
GitLab