File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,3 +103,41 @@ jobs:
103103 env :
104104 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
105105 if : ${{ matrix.php-version == env.COVERAGE_PHP_VERSION }}
106+
107+ phpunit-32bit :
108+ name : PHPUnit (32-bit)
109+ runs-on : ubuntu-latest
110+ container :
111+ image : php:8.5-cli
112+ options : --platform linux/386
113+
114+ strategy :
115+ fail-fast : false
116+ matrix :
117+ calculator :
118+ - GMP
119+ - BCMath
120+ - Native
121+
122+ steps :
123+ - name : Checkout
124+ uses : actions/checkout@v4
125+
126+ - name : Install dependencies
127+ run : |
128+ apt-get update
129+ apt-get install -y libgmp-dev unzip
130+ docker-php-ext-install gmp bcmath > /dev/null
131+
132+ - name : Install composer dependencies
133+ uses : ramsey/composer-install@v3
134+
135+ - name : Ensure 32-bit
136+ run : |
137+ php -r 'echo "PHP_INT_SIZE=", PHP_INT_SIZE, "\n";'
138+ php -r 'exit(PHP_INT_SIZE === 4 ? 0 : 1);'
139+
140+ - name : Run PHPUnit
141+ run : vendor/bin/phpunit
142+ env :
143+ CALCULATOR : ${{ matrix.calculator }}
You can’t perform that action at this time.
0 commit comments