fixup! wip: pie.yaml #7
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: pie | |
| on: | |
| push: | |
| env: | |
| BIN_SDK_VER: 2.3.0 | |
| jobs: | |
| pie: | |
| strategy: | |
| matrix: | |
| php: | |
| - '8.4' | |
| - '8.3' | |
| - '8.2' | |
| - '8.1' | |
| arch: | |
| - x64 | |
| - x86 | |
| ts: | |
| - 'nts' | |
| - 'ts' | |
| vs: | |
| - vs16 | |
| - vs17 | |
| exclude: | |
| - php: '8.4' | |
| vs: vs16 | |
| - php: '8.3' | |
| vs: vs17 | |
| - php: '8.2' | |
| vs: vs17 | |
| - php: '8.1' | |
| vs: vs17 | |
| runs-on: ${{ matrix.vs == 'vs17' && 'windows-2022' || 'windows-2019' }} | |
| env: | |
| PHP_VER: ${{ matrix.php }} | |
| VS: ${{ matrix.vs }} | |
| ARCH: ${{ matrix.arch }} | |
| TS: ${{ matrix.ts }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| # - uses: actions/cache/restore@v4 | |
| # id: cache-php | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| C:\php\php-*.zip | |
| key: php-${{ runner.os }}-${{ github.run_id }} | |
| restore-keys: | | |
| php-${{ runner.os }} | |
| - name: Debug | |
| run: | | |
| # hashFiles('C:\php\php-*.zip') | |
| # hashFiles('\php\php-*.zip') | |
| # hashFiles('/php/php-*.zip') | |
| # hashFiles('/php/php-*.zip') | |
| ls C:\php\php-*.zip | |
| shell: pwsh | |
| - name: Install build command | |
| run: .\.github\workflows\install.ps1 | |
| shell: pwsh | |
| - name: Install PIE | |
| run: |- | |
| Invoke-WebRequest "https://github.com/php/pie/releases/download/0.8.0/pie.phar" -OutFile "C:\php\pie.phar" | |
| shell: pwsh | |
| - name: Setup PHP | |
| run: |- | |
| $ini = New-Item "C:\php\bin\php.ini" -Force | |
| Add-Content $ini "extension_dir=C:\php\bin\ext" | |
| Add-Content $ini "extension=openssl" | |
| shell: pwsh | |
| - name: Install Snappy | |
| run: |- | |
| C:\php\bin\php.exe C:\php\pie.phar --version | |
| C:\php\bin\php.exe C:\php\pie.phar install kjdev/snappy | |
| shell: pwsh | |
| - name: Check Snappy | |
| run: |- | |
| ls C:\php\bin\ext | |
| cat C:\php\bin\php.ini | |
| C:\php\bin\php.exe -m | |
| C:\php\bin\php.exe --ri snappy | |
| shell: pwsh | |
| # - uses: actions/cache/save@v4 | |
| # # if: always() && steps.cache-php.outputs.cache-hit != 'true' | |
| # with: | |
| # path: | | |
| # C:\php\php-*.zip | |
| # key: ${{ steps.cache-php.outputs.cache-primary-key }} |