Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pmmp/ext-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Jan 30, 2024
2 parents 0ef9289 + 9e2e66b commit 16a1b65
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1.16, 8.2.3]
php:
- 8.1.26
- 8.2.13
- 8.3.0
valgrind: [0, 1]
debug: [enable, disable]
zts: [enable, disable]

env:
CFLAGS: "-march=x86-64"
CXXFLAGS: "-march=x86-64"

steps:
- uses: actions/checkout@v4

Expand All @@ -33,7 +40,7 @@ jobs:
id: php-build-cache
with:
path: ${{ github.workspace }}/php
key: php-${{ matrix.php }}-debug-${{ matrix.debug }}-valgrind-${{ matrix.valgrind }}-zts-${{ matrix.zts }}
key: php-${{ matrix.php }}-debug-${{ matrix.debug }}-valgrind-${{ matrix.valgrind }}-zts-${{ matrix.zts }}-generic

- name: Install PHP build dependencies
if: steps.php-build-cache.outputs.cache-hit != 'true'
Expand All @@ -48,11 +55,12 @@ jobs:

- name: Download PHP
if: steps.php-build-cache.outputs.cache-hit != 'true'
working-directory: /tmp
run: curl -L https://github.com/php/php-src/archive/refs/tags/php-${{ matrix.php }}.tar.gz | tar -xz

- name: Compile PHP
if: steps.php-build-cache.outputs.cache-hit != 'true'
working-directory: php-src-php-${{ matrix.php }}
working-directory: /tmp/php-src-php-${{ matrix.php }}
run: |
./buildconf --force
./configure \
Expand Down Expand Up @@ -80,7 +88,7 @@ jobs:
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.php }}-valgrind-${{ matrix.valgrind }}
path: |
Expand Down

0 comments on commit 16a1b65

Please sign in to comment.