stages:
  - build

.cache-paths: &cache-paths
  paths:
    - _ccache/

meson-fedora-x86_64:
  image: registry.gitlab.gnome.org/gnome/gdk-pixbuf/master:v2
  stage: build
  variables:
    BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true"
  script:
    - bash -x ./.gitlab/ci/test-docker.sh
  artifacts:
    when: on_failure
    name: "gdk-pixbuf-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
    paths:
      - "${CI_PROJECT_DIR}/build_*/meson-logs"
  cache:
    key: "$CI_JOB_NAME"
    <<: *cache-paths

msys2-mingw64:
  stage: build
  tags:
    - win32
  variables:
    MSYSTEM: "MINGW64"
    CHERE_INVOKING: "yes"
  script:
    - C:\msys64\usr\bin\pacman --noconfirm -Syyuu
    - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab/ci/test-msys2.sh"
  artifacts:
    name: "gdk-pixbuf-%CI_JOB_NAME%-%CI_COMMIT_REF_NAME%"
    when: always
    paths:
      - _build/meson-logs

stages:
  - build

.cache-paths: &cache-paths
  paths:
    - _ccache/

meson-fedora-x86_64:
  image: registry.gitlab.gnome.org/gnome/gdk-pixbuf/master:v2
  stage: build
  variables:
    BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true"
  script:
    - bash -x ./.gitlab/ci/test-docker.sh
  artifacts:
    when: on_failure
    name: "gdk-pixbuf-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
    paths:
      - "${CI_PROJECT_DIR}/build_*/meson-logs"
  cache:
    key: "$CI_JOB_NAME"
    <<: *cache-paths

msys2-mingw64:
  stage: build
  tags:
    - win32-ps
  variables:
    MSYSTEM: "MINGW64"
    CHERE_INVOKING: "yes"
  script:
    - C:\msys64\usr\bin\pacman --noconfirm -Syyuu
    - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab/ci/test-msys2.sh"
  artifacts:
    name: "gdk-pixbuf-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
    when: always
    paths:
      - _build/meson-logs

Switch to the new win32 runners
CI: Switch to the new win32 runners

powershell instead of cmd, win2016 instead of 2012r2
