File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Cache PHP
2
2
on :
3
3
- push
4
4
- repository_dispatch
5
+ - workflow_dispatch
5
6
jobs :
6
7
build :
7
8
runs-on : ${{ matrix.operating-system }}
41
42
for i in $versions; do
42
43
if [ "$i" = "$version" ]; then
43
44
curl -o /tmp/php.sh -sSL https://raw.githubusercontent.com/actions/virtual-environments/main/images/linux/scripts/installers/php.sh
44
- sed -i "s/\$php_versions/${{ matrix.php-versions }}/g" /tmp/php.sh
45
+ sed -i "s/\$(jq -r '.php.versions\[\]' \$toolset)/\"$version\"/" /tmp/php.sh
46
+ sed -i 's/php-/php$version-/' /tmp/php.sh
47
+ sed -i 's/php$version-pear/php-pear/' /tmp/php.sh
48
+ grep 'php_versions=' /tmp/php.sh
45
49
sudo bash /tmp/php.sh || true
46
50
fi
47
51
done
80
84
\"public_stats\": true \
81
85
}" \
82
86
https://api.bintray.com/packages/"$BINTRAY_USER"/"$BINTRAY_REPO" || true
83
- curl -sSLO http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-10/gcc-10-base_10-20200411-0ubuntu1_amd64.deb
84
- curl -sSLO http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-10/libgcc-s1_10-20200411-0ubuntu1_amd64.deb
85
- curl -sSLO http://archive.ubuntu.com/ubuntu/pool/universe/libz/libzstd/zstd_1.4.4+dfsg-3_amd64.deb
86
- sudo DEBIAN_FRONTEND=noninteractive dpkg -i --force-conflicts ./*.deb
87
- sudo rm -rf ./*.deb
88
- zstd -V
87
+ export PATH="$HOME/.linuxbrew/bin:$PATH"
88
+ echo "export PATH=$HOME/.linuxbrew/bin:\$PATH" >> "$GITHUB_ENV"
89
+ brew install zstd >/dev/null 2>&1 && zstd -V
89
90
mkdir "$VERSION" && sudo mv /var/cache/apt/archives/*.deb ./"$VERSION"/
90
91
if [ -e ./"$VERSION"/php"$VERSION"-cli* ]; then
91
92
sudo tar cf - "$VERSION" | zstd -22 -T0 --ultra > php_"$VERSION"+ubuntu"$DISTRIB_RELEASE".tar.zst
You can’t perform that action at this time.
0 commit comments