Skip to content

Commit ee45164

Browse files
committed
Switch from xz to zstd
1 parent 577b68b commit ee45164

File tree

7 files changed

+11
-4
lines changed

7 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ jobs:
4242
uses: actions/checkout@v2
4343
- name: Package and ship
4444
run: |
45+
curl -sSLO http://archive.ubuntu.com/ubuntu/pool/universe/libz/libzstd/zstd_1.4.4+dfsg-3_amd64.deb
46+
sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts zstd_1.4.4+dfsg-3_amd64.deb
47+
zstd -V
4548
for v in 5.3 5.4 5.5; do
46-
sudo XZ_OPT=-e9 tar cfJ php-$v.tar.xz php-$v
49+
sudo XZ_OPT=-0 tar cfJ php-$v.tar.xz php-$v
50+
sudo tar cf - php-$v | zstd --fast=7 > php-$v.tar.zst
4751
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X DELETE https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/php-$v.tar.xz || true
52+
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X DELETE https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/php-$v.tar.zst || true
4853
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -T php-$v.tar.xz https://api.bintray.com/content/shivammathur/php/"$v"-linux/"$v"/php-$v.tar.xz || true
54+
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -T php-$v.tar.zst https://api.bintray.com/content/shivammathur/php/"$v"-linux/"$v"/php-$v.tar.zst || true
4955
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X POST https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/"$v"-linux/"$v"/publish || true
5056
done
5157
env:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ curl -sSL https://github.com/shivammathur/php5-ubuntu/releases/latest/download/i
4545
- [PhpRedis](https://github.com/phpredis/phpredis "Redis PHP extension")
4646
- [Xdebug](https://github.com/xdebug/xdebug "Xdebug PHP extension")
4747
- [Zend OPCache](https://github.com/zendtech/ZendOptimizerPlus "Zend OPCache extension")
48+
- [Zstandard](https://github.com/facebook/zstd "Zstandard compression algorithm")

php-5.3/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dpkg_install="sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts"
22
sudo mkdir -p /var/run /run/php ~/php
33
$dpkg_install ./deps/*.deb
4-
sudo tar xJf ./php-5.3.29.tar.xz -C ~/php
4+
sudo tar -I zstd -xf ./php-5.3.29.tar.zst -C ~/php
55
sudo ln -sf ~/php/5.3.29/etc/php.ini /etc/php.ini

php-5.3/php-5.3.29.tar.xz

-11.1 MB
Binary file not shown.

php-5.3/php-5.3.29.tar.zst

25.8 MB
Binary file not shown.

php-5.4/post-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ sudo php5enmod redis
1818
sudo php5enmod xdebug
1919
echo "deb $dotdeb wheezy all" | sudo tee /etc/apt/sources.list.d/dotdeb-ubuntu-php-"$(lsb_release -s -c)".list
2020
curl -sSLO https://www.dotdeb.org/dotdeb.gpg
21-
sudo apt-key add dotdeb.gpg
21+
sudo DEBIAN_FRONTEND=noninteractive apt-key add dotdeb.gpg

php-5.5/post-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ sudo php5enmod redis
1818
sudo php5enmod xdebug
1919
echo "deb $dotdeb wheezy-php55 all" | sudo tee /etc/apt/sources.list.d/dotdeb-ubuntu-php-"$(lsb_release -s -c)".list
2020
curl -sSLO https://www.dotdeb.org/dotdeb.gpg
21-
sudo apt-key add dotdeb.gpg
21+
sudo DEBIAN_FRONTEND=noninteractive apt-key add dotdeb.gpg

0 commit comments

Comments
 (0)