stages: - build .build: image: 'debian:bookworm' stage: build variables: DEPENDENCIES: > meson python3-setuptools build-essential ninja-build git MESON_OPTION_ARGS: MESON_ARGS: > --warnlevel 2 --prefix=${CI_PROJECT_DIR}/gperf-prefix build/ except: - schedules before_script: - apt-get update - apt-get install --assume-yes ${DEPENDENCIES} - mkdir -p "${CI_PROJECT_DIR}" script: - meson ${MESON_OPTION_ARGS} ${MESON_ARGS} - ninja -C build/ - ninja -C build/ test artifacts: paths: - build/ deb bookworm amd64: extends: '.build' variables: MESON_OPTION_ARGS: '-Dtests=enabled' deb bookworm x86: extends: '.build' image: 'i386/debian:bookworm' variables: MESON_OPTION_ARGS: '-Dtests=enabled' .build windows: image: 'registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2023-03-20.0-main' stage: 'build' tags: - 'docker' - 'windows' - 'gstreamer-windows' - '2022' variables: # Uncomment the following key if need to pass custom args, as well with the # $env:MESON_ARGS line in the `script:` blocks # MESON_ARGS: > # -Dfoo=enabled # -Dbar=false # Make sure any failure in PowerShell scripts is fatal ErrorActionPreference: 'Stop' WarningPreference: 'Stop' before_script: - pip3 install -U meson script: # For some reason, options are separated by newline instead of space, so we # have to replace them first. # - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ") # Gitlab executes PowerShell in docker, but VsDevCmd.bat is a batch script. # Environment variables substitutions is done by PowerShell before calling # cmd.exe, that's why we use $env:FOO instead of %FOO% - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH && meson build $env:MESON_ARGS && ninja -C build && ninja -C build test" vs2017 amd64: extends: '.build windows' variables: ARCH: 'amd64' MESON_OPTION_ARGS: '-Dtests=enabled' vs2017 x86: extends: '.build windows' variables: ARCH: 'x86' # FIXME: msys2 #msys2: # extends: '.build windows' # script: # # For some reason, options are separated by newline instead of space, so we # # have to replace them first. # # - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ") # # - $env:PATH += ";C:\msys64\usr\bin;C:\msys64\mingw64/bin;C:\msys64\mingw32/bin" # - C:\msys64\usr\bin\bash -c "meson build $env:MESON_ARGS && # ninja -C build"