6 image_family: freebsd-12-1
10 - ASSUME_ALWAYS_YES=yes pkg bootstrap -f ;
11 - pkg install -y bash curl cyrus-sasl git glib gmake gnutls gsed
12 nettle perl5 pixman pkgconf png usbredir ninja
16 - ../configure --enable-werror || { cat config.log meson-logs/meson-log.txt; exit 1; }
17 - gmake -j$(sysctl -n hw.ncpu)
18 - gmake -j$(sysctl -n hw.ncpu) check V=1
24 - brew install pkg-config python gnu-sed glib pixman make sdl2 bash ninja
28 - ../configure --python=/usr/local/bin/python3 --enable-werror
29 --extra-cflags='-Wno-error=deprecated-declarations'
30 || { cat config.log meson-logs/meson-log.txt; exit 1; }
31 - gmake -j$(sysctl -n hw.ncpu)
32 - gmake check-unit V=1
33 - gmake check-block V=1
34 - gmake check-qapi-schema V=1
35 - gmake check-softfloat V=1
36 - gmake check-qtest-x86_64 V=1
40 # this is an alias for the latest Xcode
43 - brew install pkg-config gnu-sed glib pixman make sdl2 bash ninja
47 - ../configure --extra-cflags='-Wno-error=deprecated-declarations' --enable-modules
48 --enable-werror --cc=clang || { cat config.log meson-logs/meson-log.txt; exit 1; }
49 - gmake -j$(sysctl -n hw.ncpu)
50 - gmake check-unit V=1
51 - gmake check-block V=1
52 - gmake check-qapi-schema V=1
53 - gmake check-softfloat V=1
54 - gmake check-qtest-x86_64 V=1
59 image: cirrusci/windowsservercore:2019
64 CIRRUS_SHELL: powershell
65 MSYS: winsymlinks:nativestrict
67 MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/2021-01-05/msys2-base-x86_64-20210105.sfx.exe
70 diffutils git grep make pkg-config sed
71 mingw-w64-x86_64-python
72 mingw-w64-x86_64-python-sphinx
73 mingw-w64-x86_64-toolchain
75 mingw-w64-x86_64-SDL2_image
77 mingw-w64-x86_64-glib2
78 mingw-w64-x86_64-ninja
79 mingw-w64-x86_64-jemalloc
82 mingw-w64-x86_64-libjpeg-turbo
83 mingw-w64-x86_64-pixman
84 mingw-w64-x86_64-libgcrypt
85 mingw-w64-x86_64-libpng
86 mingw-w64-x86_64-libssh
87 mingw-w64-x86_64-libxml2
88 mingw-w64-x86_64-snappy
89 mingw-w64-x86_64-libusb
90 mingw-w64-x86_64-usbredir
91 mingw-w64-x86_64-libtasn1
92 mingw-w64-x86_64-nettle
93 mingw-w64-x86_64-cyrus-sasl
95 mingw-w64-x86_64-gnutls
96 mingw-w64-x86_64-libnfs
100 folder: C:\tools\archive
101 reupload_on_changes: false
102 # These env variables are used to generate fingerprint to trigger the cache procedure
103 # If wanna to force re-populate msys2, increase MSYS2_FINGERPRINT
106 echo $env:CIRRUS_TASK_NAME
108 echo $env:MSYS2_FINGERPRINT
109 echo $env:MSYS2_PACKAGES
112 md -Force C:\tools\archive\pkg
113 $start_time = Get-Date
114 bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND $env:MSYS2_URL C:\tools\archive\base.exe
115 Write-Output "Download time taken: $((Get-Date).Subtract($start_time))"
117 C:\tools\archive\base.exe -y
118 del -Force C:\tools\archive\base.exe
119 Write-Output "Base install time taken: $((Get-Date).Subtract($start_time))"
120 $start_time = Get-Date
122 ((Get-Content -path C:\tools\msys64\etc\\post-install\\07-pacman-key.post -Raw) -replace '--refresh-keys', '--version') | Set-Content -Path C:\tools\msys64\etc\\post-install\\07-pacman-key.post
123 C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
124 C:\tools\msys64\usr\bin\bash.exe -lc "export"
125 C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Sy
126 echo Y | C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Suu --overwrite=*
127 taskkill /F /FI "MODULES eq msys-2.0.dll"
129 C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf || true"
130 C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Suu --overwrite=*"
131 Write-Output "Core install time taken: $((Get-Date).Subtract($start_time))"
132 $start_time = Get-Date
134 C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed $env:MSYS2_PACKAGES"
135 Write-Output "Package install time taken: $((Get-Date).Subtract($start_time))"
136 $start_time = Get-Date
138 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\etc\mtab
139 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\fd
140 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stderr
141 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdin
142 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdout
143 del -Force -Recurse -ErrorAction SilentlyContinue C:\tools\msys64\var\cache\pacman\pkg
144 tar cf C:\tools\archive\msys64.tar -C C:\tools\ msys64
146 Write-Output "Package archive time taken: $((Get-Date).Subtract($start_time))"
147 del -Force -Recurse -ErrorAction SilentlyContinue c:\tools\msys64
150 $start_time = Get-Date
152 ls C:\tools\archive\msys64.tar
153 tar xf C:\tools\archive\msys64.tar
154 Write-Output "Extract msys2 time taken: $((Get-Date).Subtract($start_time))"
156 - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build"
157 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure --python=python3"
158 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8"
161 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"