2 extends: .base_job_template
17 # This feature doesn't (currently) work with PowerShell, it stops
18 # the echo'ing of commands being run and doesn't show any timing
21 name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
24 - build/meson-logs/testlog.txt
26 junit: "build/meson-logs/testlog.junit.xml"
28 - Write-Output "Acquiring msys2.exe installer at $(Get-Date -Format u)"
29 - If ( !(Test-Path -Path msys64\var\cache ) ) {
30 mkdir msys64\var\cache
33 "https://repo.msys2.org/distrib/msys2-x86_64-latest.sfx.exe.sig"
34 -outfile "msys2.exe.sig"
35 - if ( Test-Path -Path msys64\var\cache\msys2.exe.sig ) {
36 Write-Output "Cached installer sig" ;
37 if ( ((Get-FileHash msys2.exe.sig).Hash -ne (Get-FileHash msys64\var\cache\msys2.exe.sig).Hash) ) {
38 Write-Output "Mis-matched installer sig, new installer download required" ;
39 Remove-Item -Path msys64\var\cache\msys2.exe.sig ;
40 if ( Test-Path -Path msys64\var\cache\msys2.exe ) {
41 Remove-Item -Path msys64\var\cache\msys2.exe
44 Write-Output "Matched installer sig, cached installer still valid"
47 Write-Output "No cached installer sig, new installer download required" ;
48 if ( Test-Path -Path msys64\var\cache\msys2.exe ) {
49 Remove-Item -Path msys64\var\cache\msys2.exe
52 - if ( !(Test-Path -Path msys64\var\cache\msys2.exe ) ) {
53 Write-Output "Fetching latest installer" ;
55 "https://repo.msys2.org/distrib/msys2-x86_64-latest.sfx.exe"
56 -outfile "msys64\var\cache\msys2.exe" ;
57 Copy-Item -Path msys2.exe.sig -Destination msys64\var\cache\msys2.exe.sig
59 Write-Output "Using cached installer"
61 - Write-Output "Invoking msys2.exe installer at $(Get-Date -Format u)"
62 - msys64\var\cache\msys2.exe -y
63 - ((Get-Content -path .\msys64\etc\\post-install\\07-pacman-key.post -Raw)
64 -replace '--refresh-keys', '--version') |
65 Set-Content -Path ${CI_PROJECT_DIR}\msys64\etc\\post-install\\07-pacman-key.post
66 - .\msys64\usr\bin\bash -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
67 - .\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu' # Core update
68 - .\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu' # Normal update
69 - taskkill /F /FI "MODULES eq msys-2.0.dll"
71 - Write-Output "Installing mingw packages at $(Get-Date -Format u)"
72 - .\msys64\usr\bin\bash -lc "pacman -Sy --noconfirm --needed
75 $MINGW_TARGET-binutils
76 $MINGW_TARGET-capstone
79 $MINGW_TARGET-cyrus-sasl
85 $MINGW_TARGET-libgcrypt
86 $MINGW_TARGET-libjpeg-turbo
90 $MINGW_TARGET-libtasn1
99 $MINGW_TARGET-SDL2_image
102 $MINGW_TARGET-usbredir
104 - Write-Output "Running build at $(Get-Date -Format u)"
105 - $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
106 - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
107 - $env:CCACHE_BASEDIR = "$env:CI_PROJECT_DIR"
108 - $env:CCACHE_DIR = "$env:CCACHE_BASEDIR/ccache"
109 - $env:CCACHE_MAXSIZE = "500M"
110 - $env:CCACHE_DEPEND = 1 # cache misses are too expensive with preprocessor mode
111 - $env:CC = "ccache gcc"
114 - ..\msys64\usr\bin\bash -lc "ccache --zero-stats"
115 - ..\msys64\usr\bin\bash -lc "../configure --enable-fdt=system $CONFIGURE_ARGS"
116 - ..\msys64\usr\bin\bash -lc "make"
117 - ..\msys64\usr\bin\bash -lc "make check MTESTARGS='$TEST_ARGS' || { cat meson-logs/testlog.txt; exit 1; } ;"
118 - ..\msys64\usr\bin\bash -lc "ccache --show-stats"
119 - Write-Output "Finished build at $(Get-Date -Format u)"
122 extends: .shared_msys2_builder
124 MINGW_TARGET: mingw-w64-x86_64
126 # do not remove "--without-default-devices"!
127 # commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices"
128 # changed to compile QEMU with the --without-default-devices switch
129 # for the msys2 64-bit job, due to the build could not complete within
130 CONFIGURE_ARGS: --target-list=x86_64-softmmu --without-default-devices -Ddebug=false -Doptimization=0
131 # qTests don't run successfully with "--without-default-devices",
132 # so let's exclude the qtests from CI for now.
133 TEST_ARGS: --no-suite qtest
136 extends: .shared_msys2_builder
138 MINGW_TARGET: mingw-w64-i686
140 CONFIGURE_ARGS: --target-list=ppc64-softmmu -Ddebug=false -Doptimization=0
141 TEST_ARGS: --no-suite qtest