Skip to content

Commit

Permalink
Switch from xz to zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed May 28, 2020
1 parent 577b68b commit ee45164
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ jobs:
uses: actions/checkout@v2
- name: Package and ship
run: |
curl -sSLO http://archive.ubuntu.com/ubuntu/pool/universe/libz/libzstd/zstd_1.4.4+dfsg-3_amd64.deb
sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts zstd_1.4.4+dfsg-3_amd64.deb
zstd -V
for v in 5.3 5.4 5.5; do
sudo XZ_OPT=-e9 tar cfJ php-$v.tar.xz php-$v
sudo XZ_OPT=-0 tar cfJ php-$v.tar.xz php-$v
sudo tar cf - php-$v | zstd --fast=7 > php-$v.tar.zst
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X DELETE https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/php-$v.tar.xz || true
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X DELETE https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/php-$v.tar.zst || true
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
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
curl --user "$BINTRAY_USER":"$BINTRAY_KEY" -X POST https://api.bintray.com/content/"$BINTRAY_USER"/"$BINTRAY_REPO"/"$v"-linux/"$v"/publish || true
done
env:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ curl -sSL https://github.com/shivammathur/php5-ubuntu/releases/latest/download/i
- [PhpRedis](https://github.com/phpredis/phpredis "Redis PHP extension")
- [Xdebug](https://github.com/xdebug/xdebug "Xdebug PHP extension")
- [Zend OPCache](https://github.com/zendtech/ZendOptimizerPlus "Zend OPCache extension")
- [Zstandard](https://github.com/facebook/zstd "Zstandard compression algorithm")
2 changes: 1 addition & 1 deletion php-5.3/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dpkg_install="sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts"
sudo mkdir -p /var/run /run/php ~/php
$dpkg_install ./deps/*.deb
sudo tar xJf ./php-5.3.29.tar.xz -C ~/php
sudo tar -I zstd -xf ./php-5.3.29.tar.zst -C ~/php
sudo ln -sf ~/php/5.3.29/etc/php.ini /etc/php.ini
Binary file removed php-5.3/php-5.3.29.tar.xz
Binary file not shown.
Binary file added php-5.3/php-5.3.29.tar.zst
Binary file not shown.
2 changes: 1 addition & 1 deletion php-5.4/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ sudo php5enmod redis
sudo php5enmod xdebug
echo "deb $dotdeb wheezy all" | sudo tee /etc/apt/sources.list.d/dotdeb-ubuntu-php-"$(lsb_release -s -c)".list
curl -sSLO https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
sudo DEBIAN_FRONTEND=noninteractive apt-key add dotdeb.gpg
2 changes: 1 addition & 1 deletion php-5.5/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ sudo php5enmod redis
sudo php5enmod xdebug
echo "deb $dotdeb wheezy-php55 all" | sudo tee /etc/apt/sources.list.d/dotdeb-ubuntu-php-"$(lsb_release -s -c)".list
curl -sSLO https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
sudo DEBIAN_FRONTEND=noninteractive apt-key add dotdeb.gpg

0 comments on commit ee45164

Please sign in to comment.