Skip to content

wip: pie.yaml

wip: pie.yaml #12

Workflow file for this run

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@v4
with:
path: |
C:\php\php-*.zip
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.vs }}-${{ matrix.arch }}
restore-keys: |
${{ runner.os }}-php-
- 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