-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for 32 bit builds of PHP #302
Comments
By default 64 bit PHP is installed, except on I have no plans to adding cross-platform support for specifying the architecture directly as an input unless someone sponsors this work. Here is a test workflow. name: Multiarch workflow
on:
push:
jobs:
run:
runs-on: ubuntu-latest
container: shivammathur/node:latest-${{ matrix.arch }}
strategy:
matrix:
arch: ["amd64", "i386"]
steps:
- name: Install PHP
run: |
# Update spc (See https://github.com/shivammathur/spc for options)
spc -U
# Install PHP
spc --php-version "7.4" \
--extensions "mbstring, intl" \
--ini-values "post_max_size=256M, short_open_tag=On" \
--coverage "xdebug" \
--tools "php-cs-fixer, phpunit"
- name: check int size
# PHP_INT_SIZE is 4 for 32 bit and 8 for 64 bit
run: php -r "echo PHP_INT_SIZE;" |
Thanks! |
i can't get it working. I can't use |
@danon Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/1154928977/workflow name: Multiarch workflow
on:
push:
jobs:
run:
runs-on: ubuntu-latest
container:
image: shivammathur/node:latest-${{ matrix.arch }}
strategy:
matrix:
arch: ["amd64", "i386"]
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
tools: php-cs-fixer, phpunit
- name: check int size
# PHP_INT_SIZE is 4 for 32 bit and 8 for 64 bit
run: php -r "echo PHP_INT_SIZE;" |
Describe the feature
Thanks for the awesome project!
It would be great if you could also specify the architecture of binaries about to be installed, I would like to run my tests on 32-bit versions of PHP, too.
The text was updated successfully, but these errors were encountered: