Skip to content

Commit 388338f

Browse files
committed
feat: Add verification and installation steps for ionCube Loader in CI workflow
1 parent 12403ad commit 388338f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,34 @@ jobs:
3333
tools: composer:v2
3434
coverage: none
3535

36+
- name: Verify ionCube Loader
37+
run: |
38+
echo "Checking ionCube Loader installation..."
39+
php -m | grep -i ioncube || {
40+
echo "ionCube Loader not found, installing manually..."
41+
42+
# Download ionCube Loaders
43+
wget -O ioncube.tar.gz https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
44+
tar -xzf ioncube.tar.gz
45+
46+
# Get PHP version info
47+
PHP_VERSION=${{ matrix.php }}
48+
PHP_EXT_DIR=$(php -r "echo ini_get('extension_dir');")
49+
PHP_INI_DIR=$(php --ini | grep "Scan for additional" | cut -d: -f2 | xargs)
50+
51+
# Copy the loader
52+
sudo cp ioncube/ioncube_loader_lin_${PHP_VERSION}.so $PHP_EXT_DIR/
53+
54+
# Create ionCube configuration file
55+
echo "zend_extension=ioncube_loader_lin_${PHP_VERSION}.so" | sudo tee $PHP_INI_DIR/00-ioncube.ini
56+
57+
echo "ionCube Loader installed successfully"
58+
}
59+
60+
# Final verification
61+
echo "ionCube Loader status:"
62+
php -m | grep -i ioncube
63+
3664
- name: Install dependencies
3765
run: |
3866
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts=^${{ matrix.laravel }}"

0 commit comments

Comments
 (0)