fix: skip msvc-dev-cmd for vs16, remove vsversion causing vswhere fai… #262
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: Linux | |
| on: | |
| push: | |
| jobs: | |
| ci: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: | |
| - '8.5' | |
| - '8.4' | |
| - '8.3' | |
| - '8.2' | |
| - '8.1' | |
| - '8.0' | |
| - '7.4' | |
| - '7.3' | |
| - '7.2' | |
| - '7.1' | |
| - '7.0' | |
| ts: | |
| - nts | |
| - zts | |
| library: | |
| - '' | |
| - 'system' | |
| apcu: | |
| - '' | |
| - 'apcu' | |
| if: contains(github.event.head_commit.message, 'ci skip') == false | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| set-safe-directory: true | |
| submodules: ${{ ! matrix.library }} | |
| token: ${{ github.token }} | |
| - name: Setup PHP (${{ matrix.php }} ${{ matrix.ts }}) | |
| uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: xml, mbstring${{ matrix.apcu != '' && ', apcu' || '' }} | |
| coverage: none | |
| ini-values: zend.assertions=1 | |
| env: | |
| phpts: ${{ matrix.ts }} | |
| - name: Install dependency library | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| libzstd-dev | |
| if: ${{ matrix.library }} | |
| - name: Build | |
| run: | | |
| phpize | |
| ./configure | |
| make | |
| if: ${{ ! matrix.library }} | |
| - name: Build with library | |
| run: | | |
| phpize | |
| ./configure --with-libzstd | |
| make | |
| if: ${{ matrix.library }} | |
| - name: Test Preparation APCu | |
| run: | | |
| cp $(php-config --extension-dir)/apcu.so modules/ | |
| sed -i 's/\$(PHP_TEST_SHARED_EXTENSIONS)/-d extension=apcu.so \$(PHP_TEST_SHARED_EXTENSIONS)/' Makefile | |
| if: ${{ matrix.apcu }} | |
| - name: Test | |
| run: | | |
| make test TESTS="--show-diff" | tee test-output.txt | |
| grep 'TEST SUMMARY$' test-output.txt > /dev/null && exit 1 || exit 0 | |
| env: | |
| REPORT_EXIT_STATUS: 1 | |
| NO_INTERACTION: 1 | |
| - name: Failure Test | |
| run: | | |
| for FILE in $(find ./tests -name '*.diff'); do | |
| echo echo $FILE | |
| cat $FILE | |
| echo | |
| done | |
| if: ${{ failure() }} |