Skip to content

Commit

Permalink
Update PHP versions on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej committed Nov 22, 2024
1 parent 02b9ad9 commit 6416796
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
source:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -210,6 +214,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
ts:
- nts
- zts
Expand Down Expand Up @@ -265,6 +270,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
ts:
- nts
- zts
Expand Down Expand Up @@ -421,6 +427,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
ts:
- nts
- zts
Expand Down Expand Up @@ -477,6 +484,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
ts:
- nts
- zts
Expand Down Expand Up @@ -525,6 +533,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
ts:
- nts
- zts
Expand Down Expand Up @@ -581,6 +590,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
ts:
- nts
- zts
Expand Down Expand Up @@ -626,9 +636,10 @@ jobs:
fail-fast: false
matrix:
php:
- '8.3.4'
- '8.2.17'
- '8.1.27'
- '8.4.1'
- '8.3.14'
- '8.2.26'
- '8.1.31'
ts:
- nts
- zts
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
source_abi:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -69,7 +73,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
extensions: json, mbstring, intl
env:
phpts: nts
Expand Down Expand Up @@ -127,7 +131,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
extensions: json, mbstring, intl
env:
phpts: nts
Expand Down Expand Up @@ -185,7 +189,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
# https://github.com/shivammathur/icu-intl#icu4c-builds
extensions: json, mbstring, intl-74.1
env:
Expand Down Expand Up @@ -246,7 +250,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
# https://github.com/shivammathur/icu-intl#icu4c-builds
extensions: json, mbstring, intl-74.1
env:
Expand Down Expand Up @@ -313,7 +317,7 @@ jobs:
# winget install NASM.NASM
choco install nasm
git clone --no-progress https://github.com/php/php-sdk-binary-tools.git c:\php\php-sdk
git clone --no-progress --depth 1 --branch php-8.3.4 https://github.com/php/php-src.git c:\php\php-src
git clone --no-progress --depth 1 --branch php-8.4.1 https://github.com/php/php-src.git c:\php\php-src
- uses: actions/download-artifact@v4
with:
path: c:\php
Expand Down Expand Up @@ -353,7 +357,7 @@ jobs:
id: package
working-directory: c:\php
run: |
$PhpVersion = ("8.3.4" -split '\.')[0..1] -join '.'
$PhpVersion = ("8.4.1" -split '\.')[0..1] -join '.'
Add-Content -Path $env:GITHUB_OUTPUT -Value "php_version=$PhpVersion"
$SourceDirectory = (Get-ChildItem -Path "c:\php" -Directory "couchbase-*" | Select-Object -First 1).FullName
$DistName = "couchbase-${{ matrix.version }}-windows-x64"
Expand Down Expand Up @@ -388,7 +392,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
extensions: json, mbstring, intl, sockets
env:
phpts: nts
Expand Down Expand Up @@ -419,7 +423,7 @@ jobs:
Expand-Archive -Path couchbase-${{ needs.source_abi.outputs.alternate_abi_version }}-windows-x64.zip
$env:TEST_ABI='both'; ruby ./bin/test.rb -v ${{ needs.source_abi.outputs.abi_version }} -v ${{ needs.source_abi.outputs.alternate_abi_version }} -v unversioned
$env:TEST_ABI='versioned'; ruby ./bin/test.rb -v ${{ needs.source_abi.outputs.abi_version }}
ruby -e '
file_paths = [
"couchbase-unversioned-windows-x64/couchbase-unversioned-windows-x64/Couchbase/ExtensionNamespaceResolver.php",
Expand Down

0 comments on commit 6416796

Please sign in to comment.