Skip to content

Commit

Permalink
add windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eeliu committed Jul 31, 2024
1 parent acb2b9e commit f5438d1
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,35 +167,39 @@ jobs:
- name: package
run: |
Move-Item -Path output/Release/php_pinpoint_php.* -Destination . -ErrorAction SilentlyContinue
Move-Item -Path output/Release_TS/php_pinpoint_php.* -Destination . -ErrorAction SilentlyContinue
mkdir _package_
cp output/Release/php_pinpoint_php.* _package_ -ErrorAction SilentlyContinue
cp output/Release_TS/php_pinpoint_php.* _package_ -ErrorAction SilentlyContinue
cp NOTICE _package_
cp README.md _package_
cp CHANGES-PHP.md _package_
cp LICENSE _package_
Compress-Archive -Path _package_/* ${{ env.pinpoint_php_win32_pack_name }}.zip
- uses: actions/upload-artifact@v4
with:
name: ${{ env.pinpoint_php_win32_pack_name }}
path: |
php_pinpoint_php.dll
php_pinpoint_php.lib
php_pinpoint_php.pdb
NOTICE
README.md
CHANGES-PHP.md
LICENSE
path: ${{ env.pinpoint_php_win32_pack_name }}.zip
retention-days: 5
overwrite: true
if-no-files-found: error

PHP-Release-Win32-Package:
needs: [ PHP-Win-2019, pack_php_module]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ env.pinpoint_php_win32_pack_name }}
# name: ${{ env.pinpoint_php_win32_pack_name }}
path: pinpoint-artifact
pattern: pinpoint_php-*
merge-multiple: true
- run: ls -R pinpoint-artifact

- name: Release php_package
id: rel_php_pak
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: pinpoint-artifact/*

Expand Down Expand Up @@ -283,6 +287,8 @@ jobs:

- name: Setup protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: run unittest
run: |
Expand Down
15 changes: 7 additions & 8 deletions DOC/PHP/Readme-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

### 依赖组件

Dependency|Version| More
---|----|----
PHP| php `7+`|
GCC| GCC `4.7+`| C++11
*inux|| `windows is on the way`
pinpoint| `2.0+`|
composer| | class can be automatic pinpoint-cut
collector-agent| [installed ?](../collector-agent/readme.md)
| Dependency | Version | More |
| ------------------- | ------------------------------------------- | ----------------------------------- |
| PHP | php `7+` |
| *inux/windows/macOs | | windows is released |
| pinpoint | `2.0+` |
| composer | | class can be automatic pinpoint-cut |
| collector-agent | [installed ?](../collector-agent/readme.md) |

### 安装步骤

Expand Down
15 changes: 7 additions & 8 deletions DOC/PHP/Readme-KR.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

### 요구

디펜던시 | 버전 | 부가
---|----|----
PHP| php `7+`|
GCC| GCC `4.7+`| C++11
*inux|| `windows is on the way`
pinpoint| `2.0+`|
composer| | class can be automatic pinpoint-cut
collector-agent| [installed ?](../collector-agent/readme.md)
| 디펜던시 | 버전 | 부가 |
| ------------------- | ------------------------------------------- | ----------------------------------- |
| PHP | php `7+` |
| *inux/windows/macOs | | windows is released |
| pinpoint | `2.0+` |
| composer | | class can be automatic pinpoint-cut |
| collector-agent | [installed ?](../collector-agent/readme.md) |

### 설치 스텝

Expand Down
3 changes: 1 addition & 2 deletions DOC/PHP/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
| Dependency | Version | More |
| ------------------- | ------------------------------------------- | ----------------------------------- |
| PHP | php `7+` |
| GCC | GCC `4.7+` | C++11 |
| *inux/windows/macOs | | `windows is on the way` |
| *inux/windows/macOs | | windows is released |
| pinpoint | `2.0+` |
| composer | | class can be automatic pinpoint-cut |
| collector-agent | [installed ?](../collector-agent/readme.md) |
Expand Down

0 comments on commit f5438d1

Please sign in to comment.