github-actions(deps): bump actions/upload-artifact from 6 to 7 #165
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Valgrind | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build: | |
| name: PHP ${{ matrix.php-version }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: | |
| - '8.1.34' | |
| - '8.2.30' | |
| - '8.3.29' | |
| - '8.4.16' | |
| - '8.5.1' | |
| os: | |
| - 'ubuntu-24.04' | |
| steps: | |
| - name: Install valgrind | |
| run: | | |
| sudo apt-get install -y valgrind | |
| - name: Cache PHP | |
| id: cache-php | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| php-${{ matrix.php-version }} | |
| key: php-${{ matrix.php-version }}_${{ matrix.os }} | |
| - name: Download PHP | |
| run: | | |
| cd "$(mktemp -d)" | |
| gpg_fetch_key() { | |
| gpg --keyserver keyserver.ubuntu.com --recv-keys "$1" \ | |
| || gpg --keyserver keys.openpgp.org --recv-keys "$1" \ | |
| || gpg --keyserver keys.gnupg.net --recv-keys "$1" \ | |
| || gpg --keyserver pgp.mit.edu --recv-keys "$1" | |
| } | |
| echo "::group::Fetch PGP keys" | |
| # https://www.php.net/gpg-keys.php | |
| case "${{ matrix.php-version }}" in | |
| 8.1.*) | |
| gpg_fetch_key 528995BFEDFBA7191D46839EF9BA0ADA31CBD89E | |
| gpg_fetch_key 39B641343D8C104B2B146DC3F9C39DC0B9698544 | |
| gpg_fetch_key F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD | |
| ;; | |
| 8.2.*) | |
| gpg_fetch_key 1198C0117593497A5EC5C199286AF1F9897469DC | |
| gpg_fetch_key 39B641343D8C104B2B146DC3F9C39DC0B9698544 | |
| gpg_fetch_key E60913E4DF209907D8E30D96659A97C9CF2A795A | |
| ;; | |
| 8.3.*) | |
| gpg_fetch_key 1198C0117593497A5EC5C199286AF1F9897469DC | |
| gpg_fetch_key AFD8691FDAEDF03BDF6E460563F15A9B715376CA | |
| gpg_fetch_key C28D937575603EB4ABB725861C0779DC5C0A9DE4 | |
| ;; | |
| 8.4.*) | |
| gpg_fetch_key AFD8691FDAEDF03BDF6E460563F15A9B715376CA | |
| gpg_fetch_key 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 | |
| gpg_fetch_key 0616E93D95AF471243E26761770426E17EBBB3DD | |
| ;; | |
| 8.5.*) | |
| gpg_fetch_key 1198C0117593497A5EC5C199286AF1F9897469DC | |
| gpg_fetch_key 49D9AF6BC72A80D6691719C8AA23F5BE9C7097D4 | |
| gpg_fetch_key D95C03BC702BE9515344AE3374E44BC9067701A5 | |
| ;; | |
| *) | |
| echo "::warning::No keys imported!" | |
| ;; | |
| esac | |
| echo "::endgroup::" | |
| echo "::group::Download PHP" | |
| case "${{ matrix.php-version }}" in | |
| 8.5.0RC*) | |
| base_url="https://downloads.php.net/~edorian" | |
| ;; | |
| *) | |
| base_url="https://www.php.net/distributions" | |
| ;; | |
| esac | |
| wget "${base_url}/php-${{ matrix.php-version }}.tar.xz" | |
| wget "${base_url}/php-${{ matrix.php-version }}.tar.xz.asc" | |
| echo "::endgroup::" | |
| gpg --verify "php-${{ matrix.php-version }}.tar.xz.asc" | |
| tar --directory "$GITHUB_WORKSPACE" -xf "php-${{ matrix.php-version }}.tar.xz" | |
| if: steps.cache-php.outputs.cache-hit != 'true' | |
| - name: Compile PHP | |
| run: | | |
| ./configure \ | |
| --with-valgrind \ | |
| --enable-debug \ | |
| --enable-phpdbg \ | |
| --without-libxml \ | |
| --without-sqlite3 \ | |
| --without-pdo-sqlite \ | |
| --disable-dom \ | |
| --disable-simplexml \ | |
| --disable-xml \ | |
| --disable-xmlreader \ | |
| --disable-xmlwriter \ | |
| --disable-opcache \ | |
| --disable-fileinfo \ | |
| --disable-cgi \ | |
| --disable-phar \ | |
| --disable-filter \ | |
| --disable-pdo \ | |
| --without-iconv \ | |
| --disable-posix \ | |
| --disable-ctype \ | |
| --disable-tokenizer \ | |
| --disable-session \ | |
| --without-pear | |
| make | |
| if: steps.cache-php.outputs.cache-hit != 'true' | |
| working-directory: php-${{ matrix.php-version }} | |
| - name: Install PHP | |
| run: | | |
| sudo make install | |
| working-directory: php-${{ matrix.php-version }} | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| path: timecop | |
| - name: Test Timecop | |
| run: | | |
| phpize | |
| ./configure | |
| make | |
| make test REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TESTS="--show-all -m" | |
| working-directory: timecop |