diff options
author | Norbert Preining <preining@logic.at> | 2024-01-23 03:39:48 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2024-01-23 03:39:48 +0000 |
commit | 9910d25a362f197fa6a1451d35d092ff32248c56 (patch) | |
tree | 09b7482583f2317f8a087d433460c4ae94ead175 /Build | |
parent | 9841575ccda4b498ee8033016a86df87a77d1d8a (diff) |
[gh actions] always build
git-svn-id: svn://tug.org/texlive/trunk@69553 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-x | Build/source/.github/scripts/build-tl.sh | 118 |
1 files changed, 54 insertions, 64 deletions
diff --git a/Build/source/.github/scripts/build-tl.sh b/Build/source/.github/scripts/build-tl.sh index 399d46761b6..02d29e37b87 100755 --- a/Build/source/.github/scripts/build-tl.sh +++ b/Build/source/.github/scripts/build-tl.sh @@ -4,7 +4,7 @@ set -e if [ "x$2" = "x" ] then - echo "Usage: `basename $0` arch buildsys [steps]" >&2 + echo "Usage: `basename $0` arch buildsys [no-prepare]" >&2 exit 1 fi @@ -16,19 +16,12 @@ buildsys=$1 echo "Building on $buildsys" shift -STEPS=",$1," -if [ "$STEPS" = ",," ] +do_prepare=1 +if [ "$1" = "no-prepare" ] then - STEPS=",prepare,build," + do_prepare=0 fi -do_prepare=0 -do_build=0 -case "$STEPS" in - *,prepare,*) do_prepare=1 ;; - *,build,*) do_build=1 ;; -esac - if [ $do_prepare = 1 ] then case $buildsys in @@ -63,56 +56,53 @@ then esac fi -if [ $do_build = 1 ] -then - find . -name \*.info -exec touch '{}' \; - touch ./texk/detex/detex-src/detex.c - touch ./texk/detex/detex-src/detex.h - touch ./texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.c - touch ./texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h - touch ./texk/gregorio/gregorio-src/src/vowel/vowel-rules.h - touch ./texk/web2c/omegafonts/pl-lexer.c - touch ./texk/web2c/omegafonts/pl-parser.c - touch ./texk/web2c/omegafonts/pl-parser.h - touch ./texk/web2c/otps/otp-lexer.c - touch ./texk/web2c/otps/otp-parser.c - touch ./texk/web2c/otps/otp-parser.h - touch ./texk/web2c/web2c/web2c-lexer.c - touch ./texk/web2c/web2c/web2c-parser.c - touch ./texk/web2c/web2c/web2c-parser.h - touch ./utils/asymptote/camp.tab.cc - touch ./utils/asymptote/camp.tab.h - touch ./utils/lacheck/lacheck.c - touch ./utils/xindy/xindy-src/tex2xindy/tex2xindy.c - - # default settings - TL_MAKE_FLAGS="-j 2" - BUILDARGS="" - - # special cases - case "$arch" in - armhf-linux) - TL_MAKE_FLAGS="-j 1" - ;; - aarch64-linux) - BUILDARGS="--enable-arm-neon=on" - ;; - *-solaris) - export CC="/path/to/gcc-5.5 -m64" - export CXX="/path/to/g++-5.5 -m64" - ;; - *-freebsd) - export TL_MAKE=gmake - export CC=gcc - export CXX=g++ - export CFLAGS=-D_NETBSD_SOURCE - export CXXFLAGS='-D_NETBSD_SOURCE -std=c++11' - ;; - esac - export TL_MAKE_FLAGS - - ./Build -C $BUILDARGS - - mv inst/bin/* $arch - tar czvf texlive-bin-$arch.tar.gz $arch -fi +find . -name \*.info -exec touch '{}' \; +touch ./texk/detex/detex-src/detex.c +touch ./texk/detex/detex-src/detex.h +touch ./texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.c +touch ./texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h +touch ./texk/gregorio/gregorio-src/src/vowel/vowel-rules.h +touch ./texk/web2c/omegafonts/pl-lexer.c +touch ./texk/web2c/omegafonts/pl-parser.c +touch ./texk/web2c/omegafonts/pl-parser.h +touch ./texk/web2c/otps/otp-lexer.c +touch ./texk/web2c/otps/otp-parser.c +touch ./texk/web2c/otps/otp-parser.h +touch ./texk/web2c/web2c/web2c-lexer.c +touch ./texk/web2c/web2c/web2c-parser.c +touch ./texk/web2c/web2c/web2c-parser.h +touch ./utils/asymptote/camp.tab.cc +touch ./utils/asymptote/camp.tab.h +touch ./utils/lacheck/lacheck.c +touch ./utils/xindy/xindy-src/tex2xindy/tex2xindy.c + +# default settings +TL_MAKE_FLAGS="-j 2" +BUILDARGS="" + +# special cases +case "$arch" in + armhf-linux) + TL_MAKE_FLAGS="-j 1" + ;; + aarch64-linux) + BUILDARGS="--enable-arm-neon=on" + ;; + *-solaris) + export CC="/path/to/gcc-5.5 -m64" + export CXX="/path/to/g++-5.5 -m64" + ;; + *-freebsd) + export TL_MAKE=gmake + export CC=gcc + export CXX=g++ + export CFLAGS=-D_NETBSD_SOURCE + export CXXFLAGS='-D_NETBSD_SOURCE -std=c++11' + ;; +esac +export TL_MAKE_FLAGS + +./Build -C $BUILDARGS + +mv inst/bin/* $arch +tar czvf texlive-bin-$arch.tar.gz $arch |