2 extends: .base_job_template
8 key: "${CI_JOB_NAME}-cache"
10 - ${CI_PROJECT_DIR}/msys64/var/cache
15 - If ( !(Test-Path -Path msys64\var\cache ) ) {
16 mkdir msys64\var\cache
18 - If ( !(Test-Path -Path msys64\var\cache\msys2.exe ) ) {
20 "https://github.com/msys2/msys2-installer/releases/download/2022-06-03/msys2-base-x86_64-20220603.sfx.exe"
21 -outfile "msys64\var\cache\msys2.exe"
23 - msys64\var\cache\msys2.exe -y
24 - ((Get-Content -path .\msys64\etc\\post-install\\07-pacman-key.post -Raw)
25 -replace '--refresh-keys', '--version') |
26 Set-Content -Path ${CI_PROJECT_DIR}\msys64\etc\\post-install\\07-pacman-key.post
27 - .\msys64\usr\bin\bash -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
28 - .\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu' # Core update
29 - .\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu' # Normal update
30 - taskkill /F /FI "MODULES eq msys-2.0.dll"
33 extends: .shared_msys2_builder
35 - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed
38 mingw-w64-x86_64-capstone
40 mingw-w64-x86_64-cyrus-sasl
42 mingw-w64-x86_64-glib2
43 mingw-w64-x86_64-gnutls
45 mingw-w64-x86_64-libgcrypt
46 mingw-w64-x86_64-libjpeg-turbo
47 mingw-w64-x86_64-libnfs
48 mingw-w64-x86_64-libpng
49 mingw-w64-x86_64-libssh
50 mingw-w64-x86_64-libtasn1
51 mingw-w64-x86_64-libusb
53 mingw-w64-x86_64-nettle
54 mingw-w64-x86_64-ninja
55 mingw-w64-x86_64-pixman
56 mingw-w64-x86_64-pkgconf
57 mingw-w64-x86_64-python
59 mingw-w64-x86_64-SDL2_image
60 mingw-w64-x86_64-snappy
61 mingw-w64-x86_64-usbredir
62 mingw-w64-x86_64-zstd "
63 - $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
64 - $env:MSYSTEM = 'MINGW64' # Start a 64-bit MinGW environment
65 - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
68 # Note: do not remove "--without-default-devices"!
69 # commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices"
70 # changed to compile QEMU with the --without-default-devices switch
71 # for the msys2 64-bit job, due to the build could not complete within
72 # the project timeout.
73 - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
74 --without-default-devices --disable-opengl'
75 - ..\msys64\usr\bin\bash -lc 'make'
76 # qTests don't run successfully with "--without-default-devices",
77 # so let's exclude the qtests from CI for now.
78 - ..\msys64\usr\bin\bash -lc 'make check MTESTARGS=\"--no-suite qtest\" || { cat meson-logs/testlog.txt; exit 1; } ;'
81 extends: .shared_msys2_builder
83 - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed
86 mingw-w64-i686-capstone
88 mingw-w64-i686-cyrus-sasl
93 mingw-w64-i686-libgcrypt
94 mingw-w64-i686-libjpeg-turbo
98 mingw-w64-i686-libtasn1
101 mingw-w64-i686-nettle
103 mingw-w64-i686-pixman
104 mingw-w64-i686-pkgconf
105 mingw-w64-i686-python
107 mingw-w64-i686-SDL2_image
108 mingw-w64-i686-snappy
109 mingw-w64-i686-usbredir
110 mingw-w64-i686-zstd "
111 - $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
112 - $env:MSYSTEM = 'MINGW32' # Start a 32-bit MinGW environment
113 - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
116 - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu
118 - ..\msys64\usr\bin\bash -lc 'make'
119 - ..\msys64\usr\bin\bash -lc 'make check MTESTARGS=\"--no-suite qtest\" ||
120 { cat meson-logs/testlog.txt; exit 1; }'