forked from swoole/swoole-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
335 changed files
with
12,772 additions
and
3,270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: artifact-hash | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
description: "发版 版本号 tag" | ||
default: 'v1.7.1' | ||
type: string | ||
php-version: | ||
required: true | ||
description: "PHP 版本号 " | ||
default: 'v8.1.31,v8.2.27,v8.3.15,v8.4.2' | ||
type: string | ||
enable_upload_cloud_object_storage: | ||
required: false | ||
type: boolean | ||
description: "上传到云对象存储 (默认不需要上传)" | ||
|
||
jobs: | ||
generate-artifact-hash: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Show Release File Hash | ||
run: | | ||
bash sapi/scripts/generate-artifact-hash.sh --version ${{ inputs.version }} --php-version ${{ inputs.php-version }} | ||
- name: production artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.version }}-sha256sum | ||
retention-days: 90 | ||
path: | | ||
${{ inputs.version }}-sha256sum | ||
- name: upload artifacts to cloud object storage | ||
if: ${{ 0 && (github.repository == 'swoole/swoole-cli') && (inputs.enable_upload_cloud_object_storage == true) }} | ||
env: | ||
OSS_SECRET_ID: ${{ secrets.QCLOUD_OSS_SECRET_ID }} | ||
OSS_SECRET_KEY: ${{ secrets.QCLOUD_OSS_SECRET_KEY }} | ||
OSS_BUCKET: ${{ vars.QCLOUD_OSS_BUCKET }} | ||
OSS_REGION: ${{ vars.QCLOUD_OSS_REGION }} | ||
run: | | ||
bash sapi/scripts/tencent-cloud-object-storage.sh --upload-all --swoole-cli-version ${{ inputs.version }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: linux-download-ci | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
download-webrtc: | ||
runs-on: ubuntu-latest | ||
if: 0 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: prepare Environment | ||
run: | | ||
git config --global core.autocrlf false | ||
# 不再关心文件的权限 | ||
git config --global core.filemode false | ||
# 让 Git 显示颜色,会让命令输出看起来更醒目 | ||
git config --global color.ui true | ||
sudo apt install -y curl wget bash | ||
- name: Prepare depot_tools | ||
run: | | ||
# https://webrtc.googlesource.com/src/+/main/docs/native-code/development/prerequisite-sw/ | ||
# https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up | ||
git clone --progress -b main https://chromium.googlesource.com/chromium/tools/depot_tools.git | ||
export PATH=${{ github.workspace }}/depot_tools:$PATH | ||
echo "PATH=$PATH:${{ github.workspace }}/depot_tools" >> $GITHUB_ENV | ||
- name: Maximize build space | ||
if: 1 | ||
shell: bash | ||
run: | | ||
df -h | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf /opt/hostedtoolcache/CodeQL | ||
sudo docker image prune --all --force | ||
sudo docker builder prune -a | ||
df -h | ||
- name: Download Webrtc | ||
run: | | ||
# https://webrtc.googlesource.com/src/+/main/docs/native-code/development | ||
fetch webrtc | ||
cd src && ./build/install-build-deps.sh | ||
gclient sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.