Skip to content

Commit

Permalink
Feature archive debug (#552)
Browse files Browse the repository at this point in the history
* 更新脚本 与 build_native_php 分支保持一致

* 新增 --with-build-type 构建参数

* 改进打包机制,打包可保留调试信息

* 改进打包机制,打包可保留调试信息

* update

* setup-php-runtime.sh 允许使用 socks5h 协议

* 验证

* update

* update aarch64 workflow get app version

* update

* 新增 debug 打包

* workflow add upload debug_info

* update
  • Loading branch information
jingjingxyk authored Jan 8, 2024
1 parent 9a52abe commit 4ecaaa5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/linux-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:

- name: Cache Dependency Source Code Tarball
uses: actions/cache@v3
id: pool-cache
with:
path: ${{ github.workspace }}/pool/
key: source-code-tarball-pool
Expand Down Expand Up @@ -158,15 +159,24 @@ jobs:
echo $APP_VERSION
echo "APP_VERSION=${APP_VERSION}" >> $GITHUB_ENV
- name: production artifacts debug
uses: actions/upload-artifact@v3
with:
name: swoole-cli-v${{ env.APP_VERSION }}-linux-arm64-debug
retention-days: 90
path: ./bin/swoole-cli

- name: production artifacts
uses: actions/upload-artifact@v3
with:
name: swoole-cli-v${{ env.APP_VERSION }}-linux-arm64
retention-days: 90
path: ./bin/swoole-cli
path: ./bin/dist/swoole-cli

- name: gh release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: swoole-cli-v${{ env.APP_VERSION }}-linux-arm64.tar.xz
files: |
swoole-cli-v${{ env.APP_VERSION }}-linux-arm64.tar.xz
swoole-cli-v${{ env.APP_VERSION }}-linux-arm64-debug.tar.xz
14 changes: 12 additions & 2 deletions .github/workflows/linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:

- name: Cache Dependency Source Code Tarball
uses: actions/cache@v3
id: pool-cache
with:
path: ${{ github.workspace }}/pool/
key: source-code-tarball-pool
Expand Down Expand Up @@ -135,15 +136,24 @@ jobs:
./bin/swoole-cli ./vendor/bin/phpunit ./sapi/src/UnitTest/MainTest.php
./bin/swoole-cli ./vendor/bin/phpunit ./sapi/src/UnitTest/SwoolePGSQLTest.php
- name: production artifacts debug
uses: actions/upload-artifact@v3
with:
name: swoole-cli-v${{ env.APP_VERSION }}-linux-x64-debug
retention-days: 90
path: ./bin/swoole-cli

- name: production artifacts
uses: actions/upload-artifact@v3
with:
name: swoole-cli-v${{ env.APP_VERSION }}-linux-x64
retention-days: 90
path: ./bin/swoole-cli
path: ./bin/dist/swoole-cli

- name: gh release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: swoole-cli-v${{ env.APP_VERSION }}-linux-x64.tar.xz
files: |
swoole-cli-v${{ env.APP_VERSION }}-linux-x64.tar.xz
swoole-cli-v${{ env.APP_VERSION }}-linux-x64-debug.tar.xz
14 changes: 12 additions & 2 deletions .github/workflows/macos-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:

- name: Cache Dependency Source Code Tarball
uses: actions/cache@v3
id: pool-cache
with:
path: ${{ github.workspace }}/pool/
key: source-code-tarball-pool
Expand Down Expand Up @@ -119,15 +120,24 @@ jobs:
./bin/swoole-cli ./vendor/bin/phpunit ./sapi/src/UnitTest/MainTest.php --list-tests
./bin/swoole-cli ./vendor/bin/phpunit ./sapi/src/UnitTest/MainTest.php
- name: Archive production artifacts debug
uses: actions/upload-artifact@v3
with:
name: swoole-cli-v${{ env.APP_VERSION }}-macos-x64-debug
retention-days: 90
path: ./bin/swoole-cli

- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: swoole-cli-v${{ env.APP_VERSION }}-macos-x64
retention-days: 90
path: ./bin/swoole-cli
path: ./bin/dist/swoole-cli

- name: gh release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: swoole-cli-v${{ env.APP_VERSION }}-macos-x64.tar.xz
files: |
swoole-cli-v${{ env.APP_VERSION }}-macos-x64.tar.xz
swoole-cli-v${{ env.APP_VERSION }}-macos-x64-debug.tar.xz

0 comments on commit 4ecaaa5

Please sign in to comment.