mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Install ext-psr using apt for phalcon
This commit is contained in:
parent
cb5e07baff
commit
aeb5831c32
4
node_modules/@actions/core/package.json
generated
vendored
4
node_modules/@actions/core/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/core@1.2.0",
|
"@actions/core@1.2.0",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/core@1.2.0",
|
"_from": "@actions/core@1.2.0",
|
||||||
@ -28,7 +28,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz",
|
||||||
"_spec": "1.2.0",
|
"_spec": "1.2.0",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/@actions/exec/package.json
generated
vendored
4
node_modules/@actions/exec/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/exec@1.0.1",
|
"@actions/exec@1.0.1",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/exec@1.0.1",
|
"_from": "@actions/exec@1.0.1",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz",
|
||||||
"_spec": "1.0.1",
|
"_spec": "1.0.1",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/@actions/io/package.json
generated
vendored
4
node_modules/@actions/io/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/io@1.0.1",
|
"@actions/io@1.0.1",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/io@1.0.1",
|
"_from": "@actions/io@1.0.1",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz",
|
||||||
"_spec": "1.0.1",
|
"_spec": "1.0.1",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/@actions/tool-cache/package.json
generated
vendored
4
node_modules/@actions/tool-cache/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"@actions/tool-cache@1.1.2",
|
"@actions/tool-cache@1.1.2",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "@actions/tool-cache@1.1.2",
|
"_from": "@actions/tool-cache@1.1.2",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.1.2.tgz",
|
"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.1.2.tgz",
|
||||||
"_spec": "1.1.2",
|
"_spec": "1.1.2",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
4
node_modules/fs/package.json
generated
vendored
4
node_modules/fs/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"fs@0.0.1-security",
|
"fs@0.0.1-security",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "fs@0.0.1-security",
|
"_from": "fs@0.0.1-security",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
"_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz",
|
||||||
"_spec": "0.0.1-security",
|
"_spec": "0.0.1-security",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"author": "",
|
"author": "",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/npm/security-holder/issues"
|
"url": "https://github.com/npm/security-holder/issues"
|
||||||
|
4
node_modules/semver/package.json
generated
vendored
4
node_modules/semver/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"semver@6.3.0",
|
"semver@6.3.0",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "semver@6.3.0",
|
"_from": "semver@6.3.0",
|
||||||
@ -30,7 +30,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
|
||||||
"_spec": "6.3.0",
|
"_spec": "6.3.0",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"bin": {
|
"bin": {
|
||||||
"semver": "./bin/semver.js"
|
"semver": "./bin/semver.js"
|
||||||
},
|
},
|
||||||
|
4
node_modules/tunnel/package.json
generated
vendored
4
node_modules/tunnel/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"tunnel@0.0.4",
|
"tunnel@0.0.4",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "tunnel@0.0.4",
|
"_from": "tunnel@0.0.4",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
|
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
|
||||||
"_spec": "0.0.4",
|
"_spec": "0.0.4",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Koichi Kobayashi",
|
"name": "Koichi Kobayashi",
|
||||||
"email": "koichik@improvement.jp"
|
"email": "koichik@improvement.jp"
|
||||||
|
4
node_modules/typed-rest-client/package.json
generated
vendored
4
node_modules/typed-rest-client/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"typed-rest-client@1.5.0",
|
"typed-rest-client@1.5.0",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "typed-rest-client@1.5.0",
|
"_from": "typed-rest-client@1.5.0",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz",
|
"_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz",
|
||||||
"_spec": "1.5.0",
|
"_spec": "1.5.0",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Microsoft Corporation"
|
"name": "Microsoft Corporation"
|
||||||
},
|
},
|
||||||
|
4
node_modules/underscore/package.json
generated
vendored
4
node_modules/underscore/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"underscore@1.8.3",
|
"underscore@1.8.3",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "underscore@1.8.3",
|
"_from": "underscore@1.8.3",
|
||||||
@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
||||||
"_spec": "1.8.3",
|
"_spec": "1.8.3",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Jeremy Ashkenas",
|
"name": "Jeremy Ashkenas",
|
||||||
"email": "jeremy@documentcloud.org"
|
"email": "jeremy@documentcloud.org"
|
||||||
|
4
node_modules/uuid/package.json
generated
vendored
4
node_modules/uuid/package.json
generated
vendored
@ -2,7 +2,7 @@
|
|||||||
"_args": [
|
"_args": [
|
||||||
[
|
[
|
||||||
"uuid@3.3.3",
|
"uuid@3.3.3",
|
||||||
"C:\\wamp64\\www\\setup-php"
|
"E:\\python\\setup-php"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"_from": "uuid@3.3.3",
|
"_from": "uuid@3.3.3",
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz",
|
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz",
|
||||||
"_spec": "3.3.3",
|
"_spec": "3.3.3",
|
||||||
"_where": "C:\\wamp64\\www\\setup-php",
|
"_where": "E:\\python\\setup-php",
|
||||||
"bin": {
|
"bin": {
|
||||||
"uuid": "./bin/uuid"
|
"uuid": "./bin/uuid"
|
||||||
},
|
},
|
||||||
|
13
package-lock.json
generated
13
package-lock.json
generated
@ -1798,7 +1798,8 @@
|
|||||||
"ansi-regex": {
|
"ansi-regex": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"aproba": {
|
"aproba": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
@ -2213,7 +2214,8 @@
|
|||||||
"safe-buffer": {
|
"safe-buffer": {
|
||||||
"version": "5.1.2",
|
"version": "5.1.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"safer-buffer": {
|
"safer-buffer": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
@ -2269,6 +2271,7 @@
|
|||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ansi-regex": "^2.0.0"
|
"ansi-regex": "^2.0.0"
|
||||||
}
|
}
|
||||||
@ -2312,12 +2315,14 @@
|
|||||||
"wrappy": {
|
"wrappy": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"yallist": {
|
"yallist": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt install php"$2"-dev -y
|
if [ ! "$(apt-cache search php"$2"-psr)" ]; then
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:ondrej/php -y >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y php"$2"-dev php"$2"-psr
|
||||||
for tool in php-config phpize; do
|
for tool in php-config phpize; do
|
||||||
if [ -e "/usr/bin/$tool$2" ]; then
|
if [ -e "/usr/bin/$tool$2" ]; then
|
||||||
sudo update-alternatives --set $tool /usr/bin/"$tool$2"
|
sudo update-alternatives --set $tool /usr/bin/"$tool$2"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ ! "$(apt-cache search php"$2"-psr)" ]; then
|
||||||
cd ~ && git clone --depth=1 https://github.com/jbboehr/php-psr.git
|
cd ~ && git clone --depth=1 https://github.com/jbboehr/php-psr.git
|
||||||
cd php-psr && sudo /usr/bin/phpize"$2"
|
cd php-psr && sudo /usr/bin/phpize"$2"
|
||||||
./configure --with-php-config=/usr/bin/php-config"$2"
|
./configure --with-php-config=/usr/bin/php-config"$2"
|
||||||
make -j2 && sudo make -j2 install
|
make -j2 && sudo make -j2 install
|
||||||
echo "extension=psr.so" >> "$ini_file"
|
echo "extension=psr.so" >> "$ini_file"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" = "master" ]; then
|
if [ "$1" = "master" ]; then
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt install php"$2"-phalcon -y
|
sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y php"$2"-phalcon
|
||||||
else
|
else
|
||||||
cd ~ && git clone --depth=1 -v https://github.com/phalcon/cphalcon.git -b "$1"
|
cd ~ && git clone --depth=1 -v https://github.com/phalcon/cphalcon.git -b "$1"
|
||||||
cd cphalcon/build && sudo ./install --phpize /usr/bin/phpize"$2" --php-config /usr/bin/php-config"$2"
|
cd cphalcon/build && sudo ./install --phpize /usr/bin/phpize"$2" --php-config /usr/bin/php-config"$2"
|
||||||
|
Loading…
Reference in New Issue
Block a user