Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'

- name: Install dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"google/protobuf": "^4.0",
"friendsofphp/php-cs-fixer": "^3",
"symfony/yaml": "^5.2",
"symplify/coding-standard": "9.4.70",
"symplify/coding-standard": "13.0.0",
"microsoft/tolerant-php-parser": "^0.1.2"
},
"require-dev": {
Expand All @@ -53,7 +53,7 @@
},
"config": {
"platform": {
"php": "8.1"
"php": "8.2"
}
}
}
2 changes: 1 addition & 1 deletion repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def gapic_generator_php_repositories():
urls = ["https://github.com/googleapis/rules_gapic/archive/v%s.tar.gz" % _rules_gapic_version],
)

_php_version = "8.1.13"
_php_version = "8.2.29"
maybe(
php,
name = "php_micro",
Expand Down
Binary file not shown.
12 changes: 6 additions & 6 deletions rules_php_gapic/resources/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ The recommended (tested) way of doing it is as follows:
```
3. Download the specific PHP distribution sources from https://www.php.net/distributions:
```
curl https://www.php.net/distributions/php-8.1.13.tar.gz -o php-8.1.13.tar.gz
curl https://www.php.net/distributions/php-8.2.29.tar.gz -o php-8.2.29.tar.gz
```
4. Unpack the downloaded archive:
```
tar -xzpf php-8.1.13.tar.gz
tar -xzpf php-8.2.29.tar.gz
```
5. Go to the unpacked directory:
```
cd php-8.1.13
cd php-8.2.29
```
6. Run the build config:
```
Expand All @@ -44,9 +44,9 @@ The recommended (tested) way of doing it is as follows:
--disable-mbregex \
--with-openssl \
--enable-bcmath \
--prefix=/tmp/php-8.1.13
--prefix=/tmp/php-8.2.29
```
Please make sure that the `--prefix` destination folder has the same name as the root folder of your unpacked archive (i.e. the one you `cd` in step 3; it is usually `php-<version>`, e.g. `php-8.1.13`).
Please make sure that the `--prefix` destination folder has the same name as the root folder of your unpacked archive (i.e. the one you `cd` in step 3; it is usually `php-<version>`, e.g. `php-8.2.29`).
7. Run the build:
```
make -j10
Expand All @@ -62,7 +62,7 @@ The recommended (tested) way of doing it is as follows:
```
10. Pack the relevant binaries in the archive, using `php-<version>_<platform>.tar.gz` name format:
```
tar -zchpf php-8.1.13_linux_x86_64.tar.gz php-8.1.13/bin php-8.1.13/lib
tar -zchpf php-8.2.29_linux_x86_64.tar.gz php-8.2.29/bin php-8.2.29/lib
```
11. Copy the created archive to the `rules_gapic/php/resources` folder in this repository and post a PR.

Expand Down
Loading