Skip to content

Commit d6c8c8a

Browse files
committed
Implement install github action
1 parent 541c737 commit d6c8c8a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

actions/install/action.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#
2+
# This file is part of the PHP Code Compiler project
3+
#
4+
# Copyright (c) Yannoff (https://github.com/yannoff)
5+
#
6+
# @project PHP Code Compiler (yannoff/phpcc)
7+
# @homepage https://github.com/yannoff/phpcc
8+
# @license https://github.com/yannoff/phpcc/blob/main/LICENSE
9+
#
10+
# For the full copyright and license information, please view
11+
# the LICENSE file that was distributed with this source code.
12+
#
13+
14+
name: Install PHP Code Compiler (phpcc)
15+
author: Yannoff
16+
description: Install PHP Environment & Download PHP Code Compiler binary (phpcc)
17+
18+
inputs:
19+
php-version:
20+
description: The PHP version to install
21+
required: true
22+
23+
runs:
24+
using: composite
25+
steps:
26+
- name: Install PHP Environment
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ inputs.php-version }}
30+
coverage: none
31+
32+
- name: Download phpcc binary
33+
id: phpcc
34+
shell: bash
35+
run: curl -SL -O https://github.com/yannoff/phpcc/releases/latest/download/phpcc && chmod +x ./phpcc && mv -v phpcc /usr/local/bin

0 commit comments

Comments
 (0)