[ci skip] add example build commands to RM documentation

This commit is contained in:
Ben Ramsey 2022-06-04 10:04:16 -05:00
parent 4976483960
commit d9de36398c
No known key found for this signature in database
GPG key ID: F9C39DC0B9698544

View file

@ -84,6 +84,26 @@ explained at the end of this document in
5. Compile and run `make test`, with and without ZTS, using the right Bison and 5. Compile and run `make test`, with and without ZTS, using the right Bison and
re2c version (for PHP 7.4, minimum Bison 3.0.0 and re2c 0.13.4 are used). re2c version (for PHP 7.4, minimum Bison 3.0.0 and re2c 0.13.4 are used).
For example:
```sh
# With ZTS
make distclean || \
./buildconf --force \
&& ./configure --enable-zts --disable-all --enable-debug --enable-opcache --enable-opcache-jit \
&& make -j$(nproc) \
&& make test TEST_PHP_ARGS=-j$(nproc) \
&& ./sapi/cli/php -v
# Without ZTS
make distclean || \
./buildconf --force \
&& ./configure --disable-all --enable-debug --enable-opcache --enable-opcache-jit \
&& make -j$(nproc) \
&& make test TEST_PHP_ARGS=-j$(nproc) \
&& ./sapi/cli/php -v
```
6. Check `./sapi/cli/php -v` output for version matching. 6. Check `./sapi/cli/php -v` output for version matching.
7. If all is right, commit the changes to the release branch: 7. If all is right, commit the changes to the release branch:
@ -207,6 +227,26 @@ explained at the end of this document in
5. Compile and run `make test`, with and without ZTS, using the right Bison and 5. Compile and run `make test`, with and without ZTS, using the right Bison and
re2c version (for PHP 7.4, minimum Bison 3.0.0 and re2c 0.13.4 are used). re2c version (for PHP 7.4, minimum Bison 3.0.0 and re2c 0.13.4 are used).
For example:
```sh
# With ZTS
make distclean || \
./buildconf --force \
&& ./configure --enable-zts --disable-all --enable-debug --enable-opcache --enable-opcache-jit \
&& make -j$(nproc) \
&& make test TEST_PHP_ARGS=-j$(nproc) \
&& ./sapi/cli/php -v
# Without ZTS
make distclean || \
./buildconf --force \
&& ./configure --disable-all --enable-debug --enable-opcache --enable-opcache-jit \
&& make -j$(nproc) \
&& make test TEST_PHP_ARGS=-j$(nproc) \
&& ./sapi/cli/php -v
```
6. Check `./sapi/cli/php -v` output for version matching. 6. Check `./sapi/cli/php -v` output for version matching.
7. Tag the repository with the version e.g. `git tag -u YOURKEYID php-7.4.1` 7. Tag the repository with the version e.g. `git tag -u YOURKEYID php-7.4.1`