Make WordPress Core

Changeset 65191


Ignore:
Timestamp:
11/02/2026 03:59:22 PM (2 days ago)
Author:
lancewillett
Message:

Build/Test Tools: Use release ZIPs for installation tests.

Download WordPress release ZIP archives through wp core download to preserve long filenames during extraction. Keep nightly and trunk downloads unchanged.

Pin WP-CLI to 2.12.0 for PHP 5.6, 7.0, and 7.1, retaining the existing 2.4.0 pin for PHP 5.4 and 5.5.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/15252

Props adrianmoldovanwp, lucatume.
See #66403.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/install-testing.yml

    r65005 r65191  
    139139        uses: $/.github/actions/setup-wp-cli
    140140        with:
    141           version: ${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && '2.4.0' || 'latest' }}
    142 
    143       # WP-CLI extracts tarballs with PharData, which truncates paths longer than 100 characters.
    144       # Nightly builds are only available as a zip, which is not affected.
     141          version: ${{ contains( fromJSON('["5.4", "5.5"]'), matrix.php ) && '2.4.0' || contains( fromJSON('["5.6", "7.0", "7.1"]'), matrix.php ) && '2.12.0' || 'latest' }}
     142
     143      # WP-CLI 2.x extracts tarballs with PharData, which truncates paths longer than 100 characters.
     144      # Zip archives are not affected, so download the zip for every version.
    145145      - name: Download WordPress
    146146        run: |
    147147          case "${WP_VERSION}" in
    148148            nightly|trunk) wp core download --version=nightly ;;
    149             *) curl -fsSL "https://wordpress.org/wordpress-${WP_VERSION}.tar.gz" | tar xz --strip-components=1 ;;
     149            *) wp core download "https://wordpress.org/wordpress-${WP_VERSION}.zip" ;;
    150150          esac
    151151        env:
Note: See TracChangeset for help on using the changeset viewer.