]>
Commit | Line | Data |
---|---|---|
7876cba8 | 1 | .shared_msys2_builder: |
e312d1fd | 2 | extends: .base_job_template |
7876cba8 TH |
3 | tags: |
4 | - shared-windows | |
5 | - windows | |
6 | - windows-1809 | |
7 | cache: | |
8 | key: "${CI_JOB_NAME}-cache" | |
9 | paths: | |
10 | - ${CI_PROJECT_DIR}/msys64/var/cache | |
11 | needs: [] | |
12 | stage: build | |
cb9c6a8e | 13 | timeout: 80m |
7876cba8 TH |
14 | before_script: |
15 | - If ( !(Test-Path -Path msys64\var\cache ) ) { | |
16 | mkdir msys64\var\cache | |
17 | } | |
18 | - If ( !(Test-Path -Path msys64\var\cache\msys2.exe ) ) { | |
19 | Invoke-WebRequest | |
fc2cc19f | 20 | "https://github.com/msys2/msys2-installer/releases/download/2022-06-03/msys2-base-x86_64-20220603.sfx.exe" |
7876cba8 TH |
21 | -outfile "msys64\var\cache\msys2.exe" |
22 | } | |
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" | |
31 | ||
32 | msys2-64bit: | |
33 | extends: .shared_msys2_builder | |
34 | script: | |
35 | - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed | |
3de61b98 AJ |
36 | bison diffutils flex |
37 | git grep make sed | |
7876cba8 TH |
38 | mingw-w64-x86_64-capstone |
39 | mingw-w64-x86_64-curl | |
40 | mingw-w64-x86_64-cyrus-sasl | |
eda2321d | 41 | mingw-w64-x86_64-dtc |
7876cba8 TH |
42 | mingw-w64-x86_64-gcc |
43 | mingw-w64-x86_64-glib2 | |
44 | mingw-w64-x86_64-gnutls | |
14547e08 BM |
45 | mingw-w64-x86_64-gtk3 |
46 | mingw-w64-x86_64-libgcrypt | |
47 | mingw-w64-x86_64-libjpeg-turbo | |
7876cba8 TH |
48 | mingw-w64-x86_64-libnfs |
49 | mingw-w64-x86_64-libpng | |
50 | mingw-w64-x86_64-libssh | |
51 | mingw-w64-x86_64-libtasn1 | |
52 | mingw-w64-x86_64-libusb | |
14547e08 | 53 | mingw-w64-x86_64-lzo2 |
7876cba8 TH |
54 | mingw-w64-x86_64-nettle |
55 | mingw-w64-x86_64-ninja | |
56 | mingw-w64-x86_64-pixman | |
57 | mingw-w64-x86_64-pkgconf | |
58 | mingw-w64-x86_64-python | |
59 | mingw-w64-x86_64-SDL2 | |
60 | mingw-w64-x86_64-SDL2_image | |
61 | mingw-w64-x86_64-snappy | |
8f03c085 | 62 | mingw-w64-x86_64-spice |
7876cba8 TH |
63 | mingw-w64-x86_64-usbredir |
64 | mingw-w64-x86_64-zstd " | |
65 | - $env:CHERE_INVOKING = 'yes' # Preserve the current working directory | |
0c5a1f08 | 66 | - $env:MSYSTEM = 'MINGW64' # Start a 64-bit MinGW environment |
93a02e82 | 67 | - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink |
0c5a1f08 BM |
68 | - mkdir output |
69 | - cd output | |
70 | # Note: do not remove "--without-default-devices"! | |
71 | # commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices" | |
72 | # changed to compile QEMU with the --without-default-devices switch | |
73 | # for the msys2 64-bit job, due to the build could not complete within | |
74 | # the project timeout. | |
75 | - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu | |
eda2321d | 76 | --without-default-devices --enable-fdt=system' |
0c5a1f08 | 77 | - ..\msys64\usr\bin\bash -lc 'make' |
8616b77b BM |
78 | # qTests don't run successfully with "--without-default-devices", |
79 | # so let's exclude the qtests from CI for now. | |
80 | - ..\msys64\usr\bin\bash -lc 'make check MTESTARGS=\"--no-suite qtest\" || { cat meson-logs/testlog.txt; exit 1; } ;' | |
7876cba8 TH |
81 | |
82 | msys2-32bit: | |
83 | extends: .shared_msys2_builder | |
84 | script: | |
85 | - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed | |
3de61b98 AJ |
86 | bison diffutils flex |
87 | git grep make sed | |
7876cba8 TH |
88 | mingw-w64-i686-capstone |
89 | mingw-w64-i686-curl | |
90 | mingw-w64-i686-cyrus-sasl | |
eda2321d | 91 | mingw-w64-i686-dtc |
7876cba8 TH |
92 | mingw-w64-i686-gcc |
93 | mingw-w64-i686-glib2 | |
94 | mingw-w64-i686-gnutls | |
95 | mingw-w64-i686-gtk3 | |
96 | mingw-w64-i686-libgcrypt | |
97 | mingw-w64-i686-libjpeg-turbo | |
14547e08 BM |
98 | mingw-w64-i686-libnfs |
99 | mingw-w64-i686-libpng | |
7876cba8 TH |
100 | mingw-w64-i686-libssh |
101 | mingw-w64-i686-libtasn1 | |
102 | mingw-w64-i686-libusb | |
7876cba8 | 103 | mingw-w64-i686-lzo2 |
14547e08 | 104 | mingw-w64-i686-nettle |
7876cba8 TH |
105 | mingw-w64-i686-ninja |
106 | mingw-w64-i686-pixman | |
107 | mingw-w64-i686-pkgconf | |
108 | mingw-w64-i686-python | |
14547e08 BM |
109 | mingw-w64-i686-SDL2 |
110 | mingw-w64-i686-SDL2_image | |
7876cba8 | 111 | mingw-w64-i686-snappy |
8f03c085 | 112 | mingw-w64-i686-spice |
14547e08 BM |
113 | mingw-w64-i686-usbredir |
114 | mingw-w64-i686-zstd " | |
7876cba8 | 115 | - $env:CHERE_INVOKING = 'yes' # Preserve the current working directory |
0c5a1f08 | 116 | - $env:MSYSTEM = 'MINGW32' # Start a 32-bit MinGW environment |
93a02e82 | 117 | - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink |
7876cba8 TH |
118 | - mkdir output |
119 | - cd output | |
eda2321d TH |
120 | - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu |
121 | --enable-fdt=system' | |
5f2992fe | 122 | - ..\msys64\usr\bin\bash -lc 'make' |
6f997b89 TH |
123 | - ..\msys64\usr\bin\bash -lc 'make check MTESTARGS=\"--no-suite qtest\" || |
124 | { cat meson-logs/testlog.txt; exit 1; }' |