diff --git a/.github/workflows/build_scoped_rector.yaml b/.github/workflows/build_scoped_rector.yaml index 6f6d35042f5..5f5f8a4683d 100644 --- a/.github/workflows/build_scoped_rector.yaml +++ b/.github/workflows/build_scoped_rector.yaml @@ -52,8 +52,7 @@ jobs: - run: composer install --no-dev --ansi # early downgrade individual functions - - run: | - bin/rector process src/functions vendor/symfony/string/Resources/functions.php -c build/config/config-downgrade.php --ansi + - run: bin/rector process src/functions vendor/symfony/string/Resources/functions.php -c build/config/config-downgrade.php --ansi # 1. copy files to $NESTED_DIRECTORY directory Exclude the scoped/nested directories to prevent rsync from copying in a loop - run: rsync --exclude rector-build -av * rector-build --quiet diff --git a/full_build.sh b/full_build.sh index cf53ee07432..814d9b67ec2 100644 --- a/full_build.sh +++ b/full_build.sh @@ -2,7 +2,7 @@ # usage: # -# export PHP72_BIN_PATH=/opt/homebrew/Cellar/php@7.2/7.2.34_4/bin/php PHP80_BIN_PATH=/opt/homebrew/Cellar/php@8.0/8.0.19/bin/php && sh ./full_build.sh +# export PHP72_BIN_PATH=/opt/homebrew/Cellar/php@7.2/7.2.34_4/bin/php && sh ./full_build.sh # see https://stackoverflow.com/questions/66644233/how-to-propagate-colors-from-bash-script-to-github-action?noredirect=1#comment117811853_66644233 export TERM=xterm-color @@ -23,8 +23,7 @@ composer install --ansi composer install --no-dev --ansi # early downgrade individual functions -bin/rector process src/functions -c build/config/config-downgrade.php --ansi --clear-cache -bin/rector process vendor/symfony/string/Resources/functions.php -c build/config/config-downgrade.php --ansi --clear-cache +bin/rector process src/functions vendor/symfony/string/Resources/functions.php -c build/config/config-downgrade.php --ansi rsync --exclude rector-build -av * rector-build --quiet @@ -32,7 +31,6 @@ rm -rf rector-build/packages-tests rector-build/rules-tests rector-build/tests r php -d memory_limit=-1 bin/rector process rector-build/bin rector-build/config rector-build/src rector-build/packages rector-build/rules rector-build/vendor --config build/config/config-downgrade.php --ansi --no-diffs -# Prefixing build only works on php <= 8.0, can be used locally with PHP80_BIN_PATH env sh build/build-rector-scoped.sh rector-build rector-prefixed-downgraded # verify syntax valid in php 7.2