]> granicus.if.org Git - graphviz/commitdiff
CI: add windows-mingw32-build-step1-configure job
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 21 Nov 2021 14:08:29 +0000 (15:08 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:02 +0000 (07:35 +0100)
.gitlab-ci.yml

index e07007770331e1f7be76094c6e8e1d97f3e5db8a..dd78d06cc55fa09c4a643f52cfce9d1502f13c9a 100644 (file)
@@ -457,6 +457,36 @@ macos-autotools-build:
     tags:
         - shared-macos-amd64
 
+# We do the MinGW autotools builds in two steps in separate jobs to
+# get below the one hour per job limit of the GitLab shared Windows
+# runners
+
+windows-mingw32-build-step1-configure:
+    stage: build
+    needs:
+        - job: portable-source
+          artifacts: true
+    script:
+        - choco config set cacheLocation choco-cache
+        - choco install --yes --no-progress msys2
+        - $Env:build_system = "autotools"
+        - C:\tools\msys64\usr\bin\env MSYSTEM=MINGW32 C:\tools\msys64\usr\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/mingw-configure.sh'
+    cache:
+        key: windows-mingw32-build-step1-configure
+        paths:
+            - choco-cache
+    artifacts:
+        when: always
+        expire_in: 1 week
+        paths:
+            - GRAPHVIZ_VERSION
+            - graphviz-*
+            - build
+    tags:
+        - windows
+    except:
+        - tags
+
 windows-cygwin-build:
     stage: build
     needs: