Debian Codegraph @

subprojects/fontconfig/.gitlab-ci/other.yml

raw symbols SCIP
1 # FIXME: fontconfig should probably get its own image
2 # In the meantime, the latest GStreamer image tag can be found here:
3 # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/.gitlab-image-tags.yml#L18
4 .build meson windows:
5 image: "registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2024-11-12.0-main"
6 stage: "distro"
7 tags:
8 - "docker"
9 - "windows"
10 - "2022"
11 variables:
12 # Make sure any failure in PowerShell scripts is fatal
13 ErrorActionPreference: "Stop"
14 WarningPreference: "Stop"
15 # Uncomment the following key if need to pass custom args, as well with the
16 # $env:MESON_ARGS line in the `script:` blocks
17 # MESON_ARGS: >-
18 # -Dfoo=enabled
19 # -Dbar=disabled
20 before_script:
21 # Make sure meson is up to date, so we don't need to rebuild the image with each release
22 - pip3 install -U meson>=1.6.1 certifi tomli requests
23 # Test Rust availability. As of 11/25/2024, according to
24 # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/ci/docker/windows/Dockerfile
25 # Rust 1.82 is already installed.
26 - rustc --version
27 script:
28 # For some reason, options are separated by newline instead of space, so we
29 # have to replace them first.
30 # - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
31 # Gitlab executes PowerShell in docker, but VsDevCmd.bat is a batch script.
32 # Environment variables substitutions is done by PowerShell before calling
33 # cmd.exe, that's why we use $env:FOO instead of %FOO%
34 - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
35 SET CERT_PATH=$(python -m certifi) &&
36 SET SSL_CERT_FILE=$(python -m certifi) &&
37 SET REQUESTS_CA_BUNDLE=$(python -m certifi) &&
38 meson setup -Dxml-backend=expat $env:MESON_ARGS build &&
39 meson compile --verbose -C build &&
40 meson test -C build"
41 artifacts:
42 name: fontconfig-$CI_COMMIT_SHA-$CI_JOB_ID
43 when: always
44 paths:
45 - build-*/meson-logs/*txt
46 - prefix-*
47
48
49 meson vs2019 x86:
50 extends: ".build meson windows"
51 variables:
52 ARCH: "x86"
53 MESON_ARGS: "-Dfontations=disabled"
54
55 # A Windows Fontations build would currently require
56 # libclang and llvm installation which is a several hundred megabyte download.
57 # Skip that configuration for now.
58
59 .meson macos test:
60 stage: "distro"
61 # See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/.gitlab-ci.yml
62 # As of 2024-11-21, this is a Mac OS 15 Sequia image on Apple silicon.
63 image: "registry.freedesktop.org/gstreamer/gstreamer/macos-arm64/15-sequoia:2024-10-28.0"
64 tags:
65 - gst-mac-arm
66 artifacts:
67 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
68 expire_in: "5 days"
69 when: "always"
70 paths:
71 - "build/meson-logs/*txt"
72 before_script:
73 - pip3 install --upgrade pip
74 # Make sure meson is up to date
75 - pip3 install -U 'meson>=1.6.1'
76 # For Python < 3.11 we need tomli for Rust build support
77 - pip3 install -U tomli
78 # Need to install certificates for python
79 - pip3 install --upgrade certifi
80 # Get ninja
81 - pip3 install --upgrade ninja
82 # Install rust
83 - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
84 - . "$HOME/.cargo/env"
85 # Test Rust availability.
86 - rustup update
87 - cargo install bindgen-cli
88 - rustc --version
89 - bindgen --version
90 script:
91 - CERT_PATH=$(python3 -m certifi) && export SSL_CERT_FILE=${CERT_PATH} && export REQUESTS_CA_BUNDLE=${CERT_PATH} && meson setup -Diconv=enabled $MESON_FONTATIONS_ARG build
92 - meson compile --verbose -C build
93 - meson test -C build
94
95 meson macos test:
96 extends: ".meson macos test"
97 variables:
98 MESON_FONTATIONS_ARG: "-Dfontations=disabled"
99
100 meson macos test fontations:
101 extends: ".meson macos test"
102 variables:
103 MESON_FONTATIONS_ARG: "-Dfontations=enabled"
104
105 # msys infrastructure is a bit broken, disable for now
106 meson msys2:
107 extends: ".build meson windows"
108 when: "manual"
109 allow_failure: true
110 script:
111 # For some reason, options are separated by newline instead of space, so we
112 # have to replace them first.
113 # - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
114
115 - $env:PATH += ";C:\msys64\usr\bin;C:\msys64\mingw64/bin;C:\msys64\mingw32/bin"
116 # XXX: Copied from https://gitlab.freedesktop.org/gstreamer/gst-ci/blob/master/gitlab/ci_template.yml#L487
117 # For some reason docker build hangs if this is included in the image, needs more troubleshooting
118 - C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys || true"
119 - C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm"
120 - C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja"
121 - C:\msys64\usr\bin\bash -c "meson build $env:MESON_ARGS &&
122 ninja -C build &&
123 ninja -C build test"