Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2022-08-23 17:29:21 +0300
committerJordan Petridis <jordan@centricular.com>2022-09-08 15:12:59 +0300
commitde3972a707715aa0b8b9003722d357940f79fb3f (patch)
tree538cfd54be1fbd39fe12ba4a71371f7566670481 /.gitlab-ci.yml
parent4616e3225cc4475660dc2094f6453d138b0ead05 (diff)
ci: Add visual studio/msvc builds
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/841>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bedbb1e0..e3246dcd9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,10 @@ include:
variables:
FDO_UPSTREAM_REPO: gstreamer/gst-plugins-rs
+ WINDOWS_BASE: "registry.freedesktop.org/gstreamer/gstreamer-rs/windows"
+ WINDOWS_RUST_MINIMUM_IMAGE: "$WINDOWS_BASE:$GST_RS_IMG_TAG-main-$GST_RS_MSRV"
+ WINDOWS_RUST_STABLE_IMAGE: "$WINDOWS_BASE:$GST_RS_IMG_TAG-main-$GST_RS_STABLE"
+
workflow:
rules:
- if: $CI_MERGE_REQUEST_IID
@@ -256,6 +260,42 @@ gst-build:
- 'build/meson-logs/'
- 'build-gst-full/meson-logs/'
+.msvc2019 build:
+ stage: 'test'
+ tags:
+ - 'docker'
+ - 'windows'
+ - '2022'
+ parallel:
+ matrix:
+ - FEATURES:
+ - "--no-default-features"
+ - "--all-features"
+ - ""
+ script:
+ - echo $env:FEATURES
+
+ # Set the code page to UTF-8
+ - chcp 65001
+
+ # We need to build each crate separately to choose that can build on windows
+ - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 &&
+ powershell ./ci/run_windows_tests.ps1"
+
+ - |
+ if (!$?) {
+ Write-Host "Tests Failed!"
+ Exit 1
+ }
+
+test windows msrv:
+ extends: '.msvc2019 build'
+ image: $WINDOWS_RUST_MINIMUM_IMAGE
+
+test windows stable:
+ extends: '.msvc2019 build'
+ image: "$WINDOWS_RUST_STABLE_IMAGE"
+
rustfmt:
extends: .img-stable
stage: "lint"