-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
48 lines (41 loc) · 1.36 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 'Setup PHP SDK tool kit for Windows PHP builds'
description: 'Setup Windows build environment for PHP extensions builds with Microsoft Visual C++ command line'
author: AlexNDRmac
branding:
icon: arrow-down-circle
color: green
inputs:
php_version:
description: 'PHP version to build for (e.g: 7.4, 8.0)'
required: true
ts:
description: 'Thread Safety'
required: false
default: 'nts'
msvc:
description: 'Microsoft Visual C++ compiler toolset prefix (e.g: vc14, vs15, vs16)'
required: false
arch:
description: 'Target architecture (x64, x86)'
required: false
default: 'x64'
install_dir:
description: 'Target directory for php-sdk tools installation (e.g: C:\tools)'
required: true
cache_dir:
description: 'Cache directory for downloads. Default: system tmp dir'
required: false
default: ''
runs:
using: composite
steps:
- name: Set Up PHP SDK with Developer Pack
shell: powershell
run: |
${{github.action_path}}\src\setup-php-sdk.ps1 `
-PhpVersion ${{ inputs.php_version }} `
-ThreadSafety ${{ inputs.ts }} `
-VC ${{ inputs.msvc }} `
-Arch ${{ inputs.arch }} `
-InstallDir ${{ inputs.install_dir }} `
-CacheDir ${{ inputs.cache_dir }}