Skip to content

Commit c41f60b

Browse files
committed
ci: add 32-bits ci workflow
1 parent 13c5e8d commit c41f60b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Continuous Integration - 32-bits"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"
13+
14+
jobs:
15+
tests:
16+
name: "PHP 8.4"
17+
18+
runs-on: ubuntu-latest
19+
container: shivammathur/node:latest-i386
20+
21+
steps:
22+
- name: "Checkout"
23+
uses: "actions/checkout@v4"
24+
25+
- name: "Install PHP"
26+
uses: "shivammathur/setup-php@v2"
27+
with:
28+
coverage: "none"
29+
extensions: "intl, zip"
30+
ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On"
31+
php-version: "8.4"
32+
tools: composer
33+
34+
- name: Check PHP_INT_MAX
35+
run: |
36+
MAX=$(php -r "echo PHP_INT_MAX;")
37+
echo "PHP_INT_MAX is $MAX"
38+
if [ "$MAX" -ne 2147483647 ]; then
39+
echo "Error: PHP is not 32-bit (PHP_INT_MAX is $MAX)"
40+
exit 1
41+
fi
42+
env:
43+
MAX: ""
44+
45+
- name: Install dependencies
46+
run: |
47+
git config --global --add safe.directory $(pwd)
48+
composer install
49+
50+
- name: Run tests
51+
run: "composer test"

0 commit comments

Comments
 (0)