Add CI job for MinGW/Autotools

This commit is contained in:
Nick Wellnhofer 2022-09-04 16:00:19 +02:00
parent 0cc9c1d1b7
commit 460ba0cb7e
2 changed files with 37 additions and 0 deletions

View File

@ -51,6 +51,42 @@ clang:msan:
CC: clang
CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=memory -Wno-error=cast-align"
.mingw:
tags:
- win32-ps
variables:
BASE_CONFIG: "--with-ftp --with-legacy --with-xptr-locs"
CHERE_INVOKING: "yes"
before_script:
- "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12"
- $Env:Path="C:\msys64\$Env:MINGW_PATH\bin;C:\msys64\usr\bin;$Env:Path"
- .gitlab-ci/Setup-MinGW
- .gitlab-ci/Install-7-Zip
- .gitlab-ci/Fetch-W3C-Tests
script:
- bash -lc 'sh .gitlab-ci/test.sh'
cache:
key: "${MINGW_PACKAGE_PREFIX}msys"
paths:
- libxml2-build/xmlconf/
- 7za.exe
mingw:w64-x86_64:shared:
extends: .mingw
variables:
CFLAGS: "-O2"
MSYSTEM: MINGW64
MINGW_PACKAGE_PREFIX: mingw-w64-x86_64-
MINGW_PATH: mingw64
# Disabled, GCC missing?
.mingw:msys:shared:
extends: .mingw
variables:
CFLAGS: "-O2"
MSYSTEM: MSYS
MINGW_PATH: usr
.cmake:linux:
image: registry.gitlab.gnome.org/gnome/libxml2
script:

View File

@ -1,5 +1,6 @@
pacman --noconfirm -Syu
pacman --noconfirm -S --needed `
${Env:MINGW_PACKAGE_PREFIX}autotools `
${Env:MINGW_PACKAGE_PREFIX}cmake `
${Env:MINGW_PACKAGE_PREFIX}libiconv `
${Env:MINGW_PACKAGE_PREFIX}ninja `