mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
cleanup
This commit is contained in:
parent
8f9786b73f
commit
f8b0e78904
4
.github/workflows/workflow.yml
vendored
4
.github/workflows/workflow.yml
vendored
@ -18,10 +18,10 @@ jobs:
|
||||
with:
|
||||
version: 10.x
|
||||
|
||||
- name: npm install
|
||||
- name: Installing NPM
|
||||
run: npm install
|
||||
|
||||
- name: Install PHP
|
||||
- name: Installing PHP
|
||||
run: node lib/install.js
|
||||
env:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
|
@ -1,13 +0,0 @@
|
||||
import platform
|
||||
import os
|
||||
|
||||
current_os = platform.system()
|
||||
php_version = os.environ['php-version']
|
||||
if current_os == 'Linux':
|
||||
os.system("sudo chmod a+x ./src/linux.sh")
|
||||
os.system("./src/linux.sh " + php_version)
|
||||
elif current_os == 'Darwin':
|
||||
os.system("sudo chmod a+x ./src/darwin.sh")
|
||||
os.system("sh ./src/darwin.sh " + php_version)
|
||||
elif current_os == 'Windows':
|
||||
os.system("powershell .\src\windows.ps1 -version " + php_version)
|
@ -5,7 +5,7 @@ const fs = require('fs');
|
||||
|
||||
async function get_file(filename: string) {
|
||||
let github_path: string =
|
||||
'https://raw.githubusercontent.com/shivammathur/setup-php/develop/src/';
|
||||
'https://raw.githubusercontent.com/shivammathur/setup-php/master/src/';
|
||||
const file: any = fs.createWriteStream(filename);
|
||||
https.get(github_path + filename, function(response: any) {
|
||||
response.pipe(file);
|
||||
|
Loading…
Reference in New Issue
Block a user