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