]> granicus.if.org Git - graphviz/commitdiff
CI: add autotools windows-cygwin-build
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 22 Aug 2021 09:58:23 +0000 (11:58 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 28 Sep 2021 16:17:16 +0000 (18:17 +0200)
.gitlab-ci.yml

index 6051f5896df047968f33e3db48e73711417ad88a..2c9717fc8084c1a8379af6df6946b4092dbf6665 100644 (file)
@@ -445,6 +445,33 @@ macos-autotools-build:
     tags:
         - shared-macos-amd64
 
+windows-cygwin-build:
+    stage: build
+    needs:
+        - job: portable-source
+          artifacts: true
+    script:
+        # change line endings from crlf to lf
+        - git rm --cached -r .
+        - git -c core.autocrlf=false reset --hard
+        - choco install --yes --no-progress cygwin
+        # avoid BOM in COLLECTION file
+        - echo experimental | Out-File COLLECTION -Encoding ascii
+        - $Env:build_system = "autotools"
+        # change line endings from crlf to lf by git checkout
+        - C:\tools\cygwin\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/cygwin-build.sh'
+    artifacts:
+        when: always
+        expire_in: 1 week
+        paths:
+            - GRAPHVIZ_VERSION
+            - COLLECTION
+            - Packages/*/*/*/*/*/*.xz
+    tags:
+        - windows
+    except:
+        - tags
+
 ubuntu18-04-cmake-build:
     <<: *deb_build_definition
     needs: