[libxml2] Add CI job for MinGW/Autotools



commit 460ba0cb7ea4cd03295760c0d679832b04094b42
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sun Sep 4 16:00:19 2022 +0200

    Add CI job for MinGW/Autotools

 .gitlab-ci.yml             | 36 ++++++++++++++++++++++++++++++++++++
 .gitlab-ci/Setup-MinGW.ps1 |  1 +
 2 files changed, 37 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3155bd2c..fd50edf2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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:
diff --git a/.gitlab-ci/Setup-MinGW.ps1 b/.gitlab-ci/Setup-MinGW.ps1
index ee2452aa..291f1c26 100644
--- a/.gitlab-ci/Setup-MinGW.ps1
+++ b/.gitlab-ci/Setup-MinGW.ps1
@@ -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 `


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]