From f8b0e789044a23e7d38f25ed5ae9405b9022052b Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Fri, 6 Sep 2019 05:35:52 +0530 Subject: [PATCH] cleanup --- .github/workflows/workflow.yml | 4 ++-- src/install.py | 13 ------------- src/install.ts | 2 +- 3 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 src/install.py diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index fefdbd0c1..50c567c8f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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 }} diff --git a/src/install.py b/src/install.py deleted file mode 100644 index 11a94937d..000000000 --- a/src/install.py +++ /dev/null @@ -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) diff --git a/src/install.ts b/src/install.ts index a4c2bab93..f69d08d6c 100644 --- a/src/install.ts +++ b/src/install.ts @@ -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);