4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-28 03:27:46 +08:00

Cygwin: Use parallel make on AppVeyor

We're bumping up against the 1hr free job duration limit on AppVeyor, so
use 'make -j$(nproc)' to allow things to build slightly faster.

Restructure the way build_script: is written in YAML, so it's slightly less
repetitive and easier to add that.

Also skip 'make check' on x86, since it currently just hangs. :(
This commit is contained in:
Jon Turney 2021-05-01 01:33:24 +01:00
parent 71e8b45007
commit 079c3a5587
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81

View File

@ -55,15 +55,19 @@ xmlto,\
python38-lxml,\ python38-lxml,\
python38-ply" python38-ply"
build_script: build_script: >-
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; mkdir build install"' %CYGWIN_ROOT%/bin/bash -lc "
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; cd winsup; ./autogen.sh"' cd $APPVEYOR_BUILD_FOLDER &&
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; ../configure --prefix=$(realpath $(pwd)/../install) -v"' mkdir build install &&
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; make"' (cd winsup; ./autogen.sh) &&
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; make install"' cd build &&
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; cd */newlib; make info man"' ../configure --prefix=$(realpath $(pwd)/../install) -v &&
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; cd */newlib; make install-info install-man"' export MAKEFLAGS=-j$(nproc) &&
- '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; cd */winsup; make check || true"' make &&
make install &&
(cd */newlib; make info man) &&
(cd */newlib; make install-info install-man) &&
(cd */winsup; test "${BUILD}" != 'x86_64-pc-cygwin' || make check || true)"
test: off test: off
deploy: off deploy: off