]> granicus.if.org Git - graphviz/commitdiff
CI: add windows-cygwin-build-using-autogen job
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 9 Sep 2021 16:43:25 +0000 (18:43 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 28 Sep 2021 16:17:16 +0000 (18:17 +0200)
.gitlab-ci.yml

index 2c9717fc8084c1a8379af6df6946b4092dbf6665..8316bdc8eef4299395e775ff0405b050080d79b4 100644 (file)
@@ -472,6 +472,34 @@ windows-cygwin-build:
     except:
         - tags
 
+windows-cygwin-build-using-autogen:
+    stage: build
+    needs: []
+    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
+        - choco install --yes --no-progress --params "/InstallDir:C:\Python3" python3
+        - $env:Path = "C:\Python3;" + $env:Path
+        # avoid BOM in COLLECTION file
+        - echo experimental | Out-File COLLECTION -Encoding ascii
+        - python gen_version.py > GRAPHVIZ_VERSION
+        - $Env:build_system = "autotools"
+        - $Env:use_autogen = "yes"
+        - 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: