script:
# disable Windows Defender
- Add-MpPreference -ExclusionPath 'C:\'
- - choco config set cacheLocation choco-cache
- - choco install --yes --no-progress cygwin
+ - wget https://cygwin.com/setup-x86_64.exe -OutFile C:\setup-x86_64.exe
+ - Start-Process "C:\setup-x86_64.exe" -ArgumentList "--quiet-mode --site https://mirrors.kernel.org/sourceware/cygwin --wait" -wait
+ - $env:Path = "C:\cygwin64\bin;" + $env:Path
- $Env:build_system = "autotools"
# change line endings from crlf to lf
- - C:\tools\cygwin\bin\sed -i 's/\r//g' ci/*.sh
- - C:\tools\cygwin\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/cygwin-build.sh'
+ - C:\cygwin64\bin\sed -i 's/\r//g' ci/*.sh
+ - C:\cygwin64\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/cygwin-build.sh'
artifacts:
when: always
expire_in: 1 week
key: windows-cygwin-build
paths:
- ccache-cache
- - choco-cache
tags:
- windows
except:
script:
# disable Windows Defender
- Add-MpPreference -ExclusionPath 'C:\'
- - choco config set cacheLocation choco-cache
- - choco install --yes --no-progress cygwin
+ - wget https://cygwin.com/setup-x86_64.exe -OutFile C:\setup-x86_64.exe
+ - Start-Process "C:\setup-x86_64.exe" -ArgumentList "--quiet-mode --site https://mirrors.kernel.org/sourceware/cygwin --wait" -wait
+ - $env:Path = "C:\cygwin64\bin;" + $env:Path
- nuget install python -ExcludeVersion -OutputDirectory C:\
- $env:Path = "C:\python\tools;" + $env:Path
- python gen_version.py --output GRAPHVIZ_VERSION
- $Env:build_system = "autotools"
- $Env:use_autogen = "yes"
# change line endings from crlf to lf
- - C:\tools\cygwin\bin\find . '(' -name Makefile.am -or -name "*.def" ')' -exec C:\tools\cygwin\bin\sed -i 's/\r//g' "{}" ';'
- - C:\tools\cygwin\bin\sed -i 's/\r//g' autogen.sh ci/*.sh configure.ac lib/common/color_names lib/common/brewer_colors lib/common/svgcolor_names
- - C:\tools\cygwin\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/cygwin-build.sh'
+ - C:\cygwin64\bin\find . '(' -name Makefile.am -or -name "*.def" ')' -exec C:\cygwin64\bin\sed -i 's/\r//g' "{}" ';'
+ - C:\cygwin64\bin\sed -i 's/\r//g' autogen.sh ci/*.sh configure.ac lib/common/color_names lib/common/brewer_colors lib/common/svgcolor_names
+ - C:\cygwin64\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/cygwin-build.sh'
artifacts:
when: always
expire_in: 1 week
key: windows-cygwin-build-using-autogen
paths:
- ccache-cache
- - choco-cache
tags:
- windows
except:
script:
# disable Windows Defender
- Add-MpPreference -ExclusionPath 'C:\'
- - choco config set cacheLocation choco-cache
- - choco install --yes --no-progress cygwin
+ - wget https://cygwin.com/setup-x86_64.exe -OutFile C:\setup-x86_64.exe
+ - Start-Process "C:\setup-x86_64.exe" -ArgumentList "--quiet-mode --site https://mirrors.kernel.org/sourceware/cygwin --wait" -wait
+ - $env:Path = "C:\cygwin64\bin;" + $env:Path
- $Env:build_system = "cmake"
# fail on any compiler warnings
- $Env:CFLAGS = "-Werror"
- $Env:CXXFLAGS = "-Werror"
# change line endings from crlf to lf
- - C:\tools\cygwin\bin\sed -i 's/\r//g' ci/*.sh lib/common/color_names lib/common/brewer_colors lib/common/svgcolor_names
- - C:\tools\cygwin\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/cygwin-build.sh'
+ - C:\cygwin64\bin\sed -i 's/\r//g' ci/*.sh lib/common/color_names lib/common/brewer_colors lib/common/svgcolor_names
+ - C:\cygwin64\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/cygwin-build.sh'
artifacts:
when: always
expire_in: 1 week
key: windows-cygwin-cmake-build
paths:
- ccache-cache
- - choco-cache
tags:
- windows
except:
set -u
set -x
-/cygwinsetup.exe --quiet-mode --wait --packages autoconf2.5
-/cygwinsetup.exe --quiet-mode --wait --packages automake
-/cygwinsetup.exe --quiet-mode --wait --packages bison
-/cygwinsetup.exe --quiet-mode --wait --packages cmake
-/cygwinsetup.exe --quiet-mode --wait --packages flex
-/cygwinsetup.exe --quiet-mode --wait --packages gcc-core
-/cygwinsetup.exe --quiet-mode --wait --packages gcc-g++
-/cygwinsetup.exe --quiet-mode --wait --packages libcairo-devel
-/cygwinsetup.exe --quiet-mode --wait --packages libexpat-devel
-/cygwinsetup.exe --quiet-mode --wait --packages libpango1.0-devel
-/cygwinsetup.exe --quiet-mode --wait --packages libgd-devel
-/cygwinsetup.exe --quiet-mode --wait --packages libtool
-/cygwinsetup.exe --quiet-mode --wait --packages make
-/cygwinsetup.exe --quiet-mode --wait --packages python3
-/cygwinsetup.exe --quiet-mode --wait --packages zlib-devel
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages autoconf2.5
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages automake
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages bison
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages cmake
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages flex
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages gcc-core
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages gcc-g++
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages libcairo-devel
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages libexpat-devel
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages libpango1.0-devel
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages libgd-devel
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages libtool
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages make
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages python3
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages zlib-devel
# setup Ccache to accelerate compilation
-/cygwinsetup.exe --quiet-mode --wait --packages ccache
+/cygdrive/c/setup-x86_64.exe --quiet-mode --wait --packages ccache
export CC="ccache ${CC:-cc}"
export CXX="ccache ${CXX:-c++}"
export CCACHE_DIR=ccache-cache