Skip to content

Commit

Permalink
Merge pull request #698 from jingjingxyk/zts
Browse files Browse the repository at this point in the history
enable zend thread safe
  • Loading branch information
jingjingxyk committed Jul 16, 2024
2 parents bf6a244 + 4485006 commit 13f3567
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ jobs:
uses: softprops/action-gh-release@v2
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 }}-zts-linux-arm64.tar.xz
2 changes: 1 addition & 1 deletion .github/workflows/linux-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ jobs:
uses: softprops/action-gh-release@v2
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 }}-zts-linux-x64.tar.xz
2 changes: 1 addition & 1 deletion .github/workflows/macos-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: swoole-cli-v${{ env.APP_VERSION }}-macos-arm64.tar.xz
files: swoole-cli-v${{ env.APP_VERSION }}-zts-macos-arm64.tar.xz
2 changes: 1 addition & 1 deletion .github/workflows/macos-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,4 @@ jobs:
uses: softprops/action-gh-release@v2
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 }}-zts-macos-x64.tar.xz
5 changes: 3 additions & 2 deletions sapi/src/template/make.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
OPTIONS="--disable-all \
--enable-shared=no \
--enable-static=yes \
--enable-zts \
<?php foreach ($this->extensionList as $item) : ?>
<?=$item->options?> \
<?php endforeach; ?>
Expand Down Expand Up @@ -251,7 +252,7 @@
cd ${__PROJECT_DIR__}/bin/
SWOOLE_VERSION=$(./swoole-cli -r "echo SWOOLE_VERSION;")

SWOOLE_CLI_FILE_DEBUG=swoole-cli-v${SWOOLE_VERSION}-<?=$this->getOsType()?>-<?=$this->getSystemArch()?>-debug.tar.xz
SWOOLE_CLI_FILE_DEBUG=swoole-cli-v${SWOOLE_VERSION}-zts-<?=$this->getOsType()?>-<?=$this->getSystemArch()?>-debug.tar.xz
tar -cJvf ${SWOOLE_CLI_FILE_DEBUG} swoole-cli LICENSE pack-sfx.php


Expand All @@ -261,7 +262,7 @@
cp -f pack-sfx.php dist/

cd ${__PROJECT_DIR__}/bin/dist/
SWOOLE_CLI_FILE=swoole-cli-v${SWOOLE_VERSION}-<?=$this->getOsType()?>-<?=$this->getSystemArch()?>.tar.xz
SWOOLE_CLI_FILE=swoole-cli-v${SWOOLE_VERSION}-zts-<?=$this->getOsType()?>-<?=$this->getSystemArch()?>.tar.xz
strip swoole-cli
tar -cJvf ${SWOOLE_CLI_FILE} swoole-cli LICENSE pack-sfx.php

Expand Down

0 comments on commit 13f3567

Please sign in to comment.