6 image_family: freebsd-12-2
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 # TODO: Enable gnutls again once FreeBSD's libtasn1 got fixed
17 # See: https://gitlab.com/gnutls/libtasn1/-/merge_requests/71
18 - ../configure --enable-werror --disable-gnutls
19 || { cat config.log meson-logs/meson-log.txt; exit 1; }
20 - gmake -j$(sysctl -n hw.ncpu)
21 - gmake -j$(sysctl -n hw.ncpu) check V=1
27 - brew install pkg-config python gnu-sed glib pixman make sdl2 bash ninja
31 - ../configure --python=/usr/local/bin/python3 --enable-werror
32 --extra-cflags='-Wno-error=deprecated-declarations'
33 || { cat config.log meson-logs/meson-log.txt; exit 1; }
34 - gmake -j$(sysctl -n hw.ncpu)
35 - gmake check-unit V=1
36 - gmake check-block V=1
37 - gmake check-qapi-schema V=1
38 - gmake check-softfloat V=1
39 - gmake check-qtest-x86_64 V=1
43 # this is an alias for the latest Xcode
46 - brew install pkg-config gnu-sed glib pixman make sdl2 bash ninja
50 - ../configure --extra-cflags='-Wno-error=deprecated-declarations' --enable-modules
51 --enable-werror --cc=clang || { cat config.log meson-logs/meson-log.txt; exit 1; }
52 - gmake -j$(sysctl -n hw.ncpu)
53 - gmake check-unit V=1
54 - gmake check-block V=1
55 - gmake check-qapi-schema V=1
56 - gmake check-softfloat V=1
57 - gmake check-qtest-x86_64 V=1
62 image: cirrusci/windowsservercore:2019
67 CIRRUS_SHELL: powershell
68 MSYS: winsymlinks:nativestrict
70 MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/2021-04-19/msys2-base-x86_64-20210419.sfx.exe
73 diffutils git grep make pkg-config sed
74 mingw-w64-x86_64-python
75 mingw-w64-x86_64-python-sphinx
76 mingw-w64-x86_64-toolchain
78 mingw-w64-x86_64-SDL2_image
80 mingw-w64-x86_64-glib2
81 mingw-w64-x86_64-ninja
82 mingw-w64-x86_64-jemalloc
85 mingw-w64-x86_64-libjpeg-turbo
86 mingw-w64-x86_64-pixman
87 mingw-w64-x86_64-libgcrypt
88 mingw-w64-x86_64-libpng
89 mingw-w64-x86_64-libssh
90 mingw-w64-x86_64-libxml2
91 mingw-w64-x86_64-snappy
92 mingw-w64-x86_64-libusb
93 mingw-w64-x86_64-usbredir
94 mingw-w64-x86_64-libtasn1
95 mingw-w64-x86_64-nettle
96 mingw-w64-x86_64-cyrus-sasl
98 mingw-w64-x86_64-gnutls
99 mingw-w64-x86_64-libnfs
103 folder: C:\tools\archive
104 reupload_on_changes: false
105 # These env variables are used to generate fingerprint to trigger the cache procedure
106 # If wanna to force re-populate msys2, increase MSYS2_FINGERPRINT
109 echo $env:CIRRUS_TASK_NAME
111 echo $env:MSYS2_FINGERPRINT
112 echo $env:MSYS2_PACKAGES
115 md -Force C:\tools\archive\pkg
116 $start_time = Get-Date
117 bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND $env:MSYS2_URL C:\tools\archive\base.exe
118 Write-Output "Download time taken: $((Get-Date).Subtract($start_time))"
120 C:\tools\archive\base.exe -y
121 del -Force C:\tools\archive\base.exe
122 Write-Output "Base install time taken: $((Get-Date).Subtract($start_time))"
123 $start_time = Get-Date
125 ((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
126 C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
127 C:\tools\msys64\usr\bin\bash.exe -lc "export"
128 C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Sy
129 echo Y | C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Suu --overwrite=*
130 taskkill /F /FI "MODULES eq msys-2.0.dll"
132 C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf || true"
133 C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syuu --overwrite=*"
134 Write-Output "Core install time taken: $((Get-Date).Subtract($start_time))"
135 $start_time = Get-Date
137 C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed $env:MSYS2_PACKAGES"
138 Write-Output "Package install time taken: $((Get-Date).Subtract($start_time))"
139 $start_time = Get-Date
141 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\etc\mtab
142 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\fd
143 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stderr
144 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdin
145 del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdout
146 del -Force -Recurse -ErrorAction SilentlyContinue C:\tools\msys64\var\cache\pacman\pkg
147 tar cf C:\tools\archive\msys64.tar -C C:\tools\ msys64
149 Write-Output "Package archive time taken: $((Get-Date).Subtract($start_time))"
150 del -Force -Recurse -ErrorAction SilentlyContinue c:\tools\msys64
153 $start_time = Get-Date
155 ls C:\tools\archive\msys64.tar
156 tar xf C:\tools\archive\msys64.tar
157 Write-Output "Extract msys2 time taken: $((Get-Date).Subtract($start_time))"
159 - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build"
160 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure --python=python3"
161 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8"
164 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"