Skip to content

Commit 758b48d

Browse files
authored
Upgrade action config to v5 (#1075)
* 添加v6.2.0.0 发版信息 * 设置swoole 版本为v6.1.7 * update README.md * update ChangeLog.md * update README.md * update setup-swoole-cli-runtime.ps1 * 更新工作流判断 PHP 运行时是否存在 * 更新 glibc 构建脚本 * 更新 glibc 构建脚本 * 修复 glibc 构建时 缓存 php 运行时错误 * 修复glibc 构建完毕,上传bug * 升级action 配置为v5
1 parent 29471e4 commit 758b48d

9 files changed

Lines changed: 47 additions & 47 deletions

.github/workflows/artifact-hash.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
generate-artifact-hash:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
- name: Show Release File Hash
2222
run: |
2323
bash sapi/scripts/generate-artifact-hash.sh --version ${{ inputs.version }}
2424
2525
- name: production artifacts
26-
uses: actions/upload-artifact@v4
26+
uses: actions/upload-artifact@v5
2727
with:
2828
name: ${{ inputs.version }}-sha256sum
2929
retention-days: 90

.github/workflows/auto-cache-pool-tarball.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: ${{ (github.repository_owner == 'swoole') }}
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- name: Prepare Source Code
1717
run: |
1818
echo $PATH
@@ -41,21 +41,21 @@ jobs:
4141
echo "X_IPV4=${IPV4}" >> $GITHUB_ENV
4242
4343
- name: Cache PHP Runtime
44-
uses: actions/cache@v4
44+
uses: actions/cache@v5
4545
id: php-runtime-cache
4646
with:
4747
path: ${{ github.workspace }}/bin/runtime
4848
key: ${{ runner.os }}-x86_64-php-runtime
4949

5050
- name: Cache PHP Vendor
51-
uses: actions/cache@v4
51+
uses: actions/cache@v5
5252
id: php-vendor-cache
5353
with:
5454
path: ${{ github.workspace }}/vendor
5555
key: ${{ runner.os }}-x86_64-php-vendor
5656

5757
- name: Cache Dependency Source Code Tarball
58-
uses: actions/cache@v4
58+
uses: actions/cache@v5
5959
id: pool-cache
6060
with:
6161
path: ${{ github.workspace }}/pool/
@@ -104,7 +104,7 @@ jobs:
104104
cat bin/LICENSE
105105
106106
- name: production artifacts
107-
uses: actions/upload-artifact@v4
107+
uses: actions/upload-artifact@v5
108108
with:
109109
name: all-deps
110110
retention-days: 90

.github/workflows/linux-aarch64.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
if: ${{ !contains(github.event.head_commit.message, '--filter=') || contains(github.event.head_commit.message, '[linux-aarch64]') }}
88
runs-on: ubuntu-24.04-arm
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- name: Show Environment Info
1212
run: |
1313
echo $PATH
@@ -45,35 +45,35 @@ jobs:
4545
mkdir -p ${{ github.workspace }}/var/build-github-action-container/
4646
4747
- name: Cache PHP Runtime
48-
uses: actions/cache@v4
48+
uses: actions/cache@v5
4949
id: php-runtime-cache-aarch64
5050
with:
5151
path: ${{ github.workspace }}/runtime
5252
key: ${{ runner.os }}-aarch64-php-runtime
5353

5454
- name: Cache PHP Vendor
55-
uses: actions/cache@v4
55+
uses: actions/cache@v5
5656
id: php-vendor-cache-aarch64
5757
with:
5858
path: ${{ github.workspace }}/vendor
5959
key: ${{ runner.os }}-aarch64-php-vendor
6060

6161
- name: Cache Dependency Source Code Tarball
62-
uses: actions/cache@v4
62+
uses: actions/cache@v5
6363
id: pool-cache
6464
with:
6565
path: ${{ github.workspace }}/pool/
6666
key: source-code-tarball-pool
6767

6868
- name: Cache all-library
69-
uses: actions/cache@v4
69+
uses: actions/cache@v5
7070
id: all-library-cache-aarch64
7171
with:
7272
path: /usr/local/swoole-cli
7373
key: ${{ github.head_ref || github.ref_name }}-${{ runner.os }}-aarch64-all-library
7474

7575
- name: Cache swoole-cli-builder-image
76-
uses: actions/cache@v4
76+
uses: actions/cache@v5
7777
id: swoole-cli-builder-image-cache-aarch64
7878
with:
7979
path: ${{ github.workspace }}/var/build-github-action-container/swoole-cli-builder-image.tar
@@ -145,14 +145,14 @@ jobs:
145145
./bin/swoole-cli ./vendor/bin/phpunit ./sapi/src/UnitTest/MainTest.php
146146
147147
- name: production artifacts debug
148-
uses: actions/upload-artifact@v4
148+
uses: actions/upload-artifact@v5
149149
with:
150150
name: swoole-cli-v${{ env.APP_VERSION }}-linux-arm64-debug
151151
retention-days: 90
152152
path: ./bin/swoole-cli
153153

154154
- name: production artifacts
155-
uses: actions/upload-artifact@v4
155+
uses: actions/upload-artifact@v5
156156
with:
157157
name: swoole-cli-v${{ env.APP_VERSION }}-linux-arm64
158158
retention-days: 90

.github/workflows/linux-glibc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: linux-glibc-${{ matrix.os }}
1313
runs-on: ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- name: Show Environment Info
1717
run: |
1818
echo $PATH
@@ -50,7 +50,7 @@ jobs:
5050
mkdir -p ${{ github.workspace }}/var/build-github-action-container/
5151
5252
- name: Cache Dependency Source Code Tarball
53-
uses: actions/cache@v4
53+
uses: actions/cache@v5
5454
id: pool-cache
5555
with:
5656
path: ${{ github.workspace }}/pool/
@@ -122,14 +122,14 @@ jobs:
122122
echo "OS=${OS}" >> $GITHUB_ENV
123123
124124
- name: production artifacts debian
125-
uses: actions/upload-artifact@v4
125+
uses: actions/upload-artifact@v5
126126
with:
127127
name: swoole-cli-glibc-for-debian-${{ env.FILE_ARCH }}
128128
retention-days: 90
129129
path: ${{ github.workspace }}/swoole-cli-v${{ env.APP_VERSION }}-${{ env.OS }}-${{ env.FILE_ARCH }}-glibc.deb
130130

131131
- name: production artifacts redhat
132-
uses: actions/upload-artifact@v4
132+
uses: actions/upload-artifact@v5
133133
with:
134134
name: swoole-cli-glibc-for-redhat-${{ env.FILE_ARCH }}
135135
retention-days: 90

.github/workflows/linux-x86_64.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
if: ${{ !contains(github.event.head_commit.message, '--filter=') || contains(github.event.head_commit.message, '[linux-x86_64]') }}
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- name: Show Environment Info
1212
run: |
1313
echo $PATH
@@ -45,35 +45,35 @@ jobs:
4545
mkdir -p ${{ github.workspace }}/var/build-github-action-container/
4646
4747
- name: Cache PHP Runtime
48-
uses: actions/cache@v4
48+
uses: actions/cache@v5
4949
id: php-runtime-cache-x86_64
5050
with:
5151
path: ${{ github.workspace }}/runtime
5252
key: ${{ runner.os }}-x86_64-php-runtime
5353

5454
- name: Cache PHP Vendor
55-
uses: actions/cache@v4
55+
uses: actions/cache@v5
5656
id: php-vendor-cache-x86_64
5757
with:
5858
path: ${{ github.workspace }}/vendor
5959
key: ${{ runner.os }}-x86_64-php-vendor
6060

6161
- name: Cache Dependency Source Code Tarball
62-
uses: actions/cache@v4
62+
uses: actions/cache@v5
6363
id: pool-cache
6464
with:
6565
path: ${{ github.workspace }}/pool/
6666
key: source-code-tarball-pool
6767

6868
- name: Cache all-library
69-
uses: actions/cache@v4
69+
uses: actions/cache@v5
7070
id: all-library-cache-x86_64
7171
with:
7272
path: /usr/local/swoole-cli
7373
key: ${{ github.head_ref || github.ref_name }}-${{ runner.os }}-x86_64-all-library
7474

7575
- name: Cache swoole-cli-builder-image
76-
uses: actions/cache@v4
76+
uses: actions/cache@v5
7777
id: swoole-cli-builder-image-cache-x86_64
7878
with:
7979
path: ${{ github.workspace }}/var/build-github-action-container/swoole-cli-builder-image.tar
@@ -151,14 +151,14 @@ jobs:
151151
./bin/swoole-cli ./vendor/bin/phpunit ./sapi/src/UnitTest/MainTest.php
152152
153153
- name: production artifacts debug
154-
uses: actions/upload-artifact@v4
154+
uses: actions/upload-artifact@v5
155155
with:
156156
name: swoole-cli-v${{ env.APP_VERSION }}-linux-x64-debug
157157
retention-days: 90
158158
path: ./bin/swoole-cli
159159

160160
- name: production artifacts
161-
uses: actions/upload-artifact@v4
161+
uses: actions/upload-artifact@v5
162162
with:
163163
name: swoole-cli-v${{ env.APP_VERSION }}-linux-x64
164164
retention-days: 90

.github/workflows/macos-aarch64.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Show Environment Info
1818
run: |
1919
set -x
@@ -55,28 +55,28 @@ jobs:
5555
git submodule update --init
5656
5757
- name: Cache PHP Runtime
58-
uses: actions/cache@v4
58+
uses: actions/cache@v5
5959
id: php-runtime-cache
6060
with:
6161
path: ${{ github.workspace }}/runtime
6262
key: ${{ runner.os }}-aarch64-php-runtime
6363

6464
- name: Cache PHP Vendor
65-
uses: actions/cache@v4
65+
uses: actions/cache@v5
6666
id: php-vendor-cache
6767
with:
6868
path: ${{ github.workspace }}/vendor
6969
key: ${{ runner.os }}-aarch64-php-vendor
7070

7171
- name: Cache Dependency Source Code Tarball
72-
uses: actions/cache@v4
72+
uses: actions/cache@v5
7373
id: pool-cache
7474
with:
7575
path: ${{ github.workspace }}/pool/
7676
key: source-code-tarball-pool
7777

7878
- name: Cache all-library
79-
uses: actions/cache@v4
79+
uses: actions/cache@v5
8080
id: all-library-cache
8181
with:
8282
path: /usr/local/swoole-cli
@@ -134,14 +134,14 @@ jobs:
134134
./bin/swoole-cli ./vendor/bin/phpunit ./sapi/src/UnitTest/MainTest.php
135135
136136
- name: Archive production artifacts debug
137-
uses: actions/upload-artifact@v4
137+
uses: actions/upload-artifact@v5
138138
with:
139139
name: swoole-cli-v${{ env.APP_VERSION }}-macos-arm64-debug
140140
retention-days: 90
141141
path: ./bin/swoole-cli
142142

143143
- name: Archive production artifacts
144-
uses: actions/upload-artifact@v4
144+
uses: actions/upload-artifact@v5
145145
with:
146146
name: swoole-cli-v${{ env.APP_VERSION }}-macos-arm64
147147
retention-days: 90

.github/workflows/macos-x86_64.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Show Environment Info
1818
run: |
1919
set -x
@@ -55,28 +55,28 @@ jobs:
5555
git submodule update --init
5656
5757
- name: Cache PHP Runtime
58-
uses: actions/cache@v4
58+
uses: actions/cache@v5
5959
id: php-runtime-cache
6060
with:
6161
path: ${{ github.workspace }}/runtime
6262
key: ${{ runner.os }}-x86_64-php-runtime
6363

6464
- name: Cache PHP Vendor
65-
uses: actions/cache@v4
65+
uses: actions/cache@v5
6666
id: php-vendor-cache
6767
with:
6868
path: ${{ github.workspace }}/vendor
6969
key: ${{ runner.os }}-x86_64-php-vendor
7070

7171
- name: Cache Dependency Source Code Tarball
72-
uses: actions/cache@v4
72+
uses: actions/cache@v5
7373
id: pool-cache
7474
with:
7575
path: ${{ github.workspace }}/pool/
7676
key: source-code-tarball-pool
7777

7878
- name: Cache all-library
79-
uses: actions/cache@v4
79+
uses: actions/cache@v5
8080
id: all-library-cache
8181
with:
8282
path: /usr/local/swoole-cli

.github/workflows/windows-cygwin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
git config --global core.ignorecase false
2626
git config --global --add safe.directory ${{ github.workspace }}
2727
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
- name: Prepare submodule
3030
run: |
3131
git submodule update --init
3232
3333
- name: Cache pool
3434
id: cache-cygwin-pool
35-
uses: actions/cache@v4
35+
uses: actions/cache@v5
3636
with:
3737
path: "${{ github.workspace }}\\pool\\"
3838
key: ${{ runner.os }}-build-pool-cache
@@ -131,7 +131,7 @@ jobs:
131131
132132
133133
- name: production artifacts
134-
uses: actions/upload-artifact@v4
134+
uses: actions/upload-artifact@v5
135135
with:
136136
name: swoole-cli-v${{ env.APP_VERSION }}-cygwin-x64
137137
retention-days: 90
@@ -153,7 +153,7 @@ jobs:
153153
- name: Prepare Run Environment
154154
run:
155155
sudo apt install -y curl
156-
- uses: actions/checkout@v4
156+
- uses: actions/checkout@v5
157157
- uses: actions/download-artifact@v4
158158
- name: upload artifacts to cloud object storage
159159
if: ${{ (github.repository == 'swoole/swoole-cli') && (startsWith(github.ref, 'refs/tags/')) }}

.github/workflows/windows-msys2.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
git config --global core.ignorecase false
3131
git config --global --add safe.directory ${{ github.workspace }}
3232
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v5
3434
- name: Cache pool
3535
id: cache-msys2-pool
36-
uses: actions/cache@v4
36+
uses: actions/cache@v5
3737
with:
3838
path: "${{ github.workspace }}\\pool\\"
3939
key: "${{ runner.os }}-build-pool-cache"
@@ -96,7 +96,7 @@ jobs:
9696
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV
9797
9898
- name: production artifacts
99-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@v5
100100
with:
101101
name: ${{ env.APP_NAME }}-${{ env.APP_VERSION }}-msys2-x64
102102
retention-days: 90
@@ -119,7 +119,7 @@ jobs:
119119
- name: Prepare Run Environment
120120
run:
121121
sudo apt install -y curl
122-
- uses: actions/checkout@v4
122+
- uses: actions/checkout@v5
123123
- uses: actions/download-artifact@v4
124124
- name: upload artifacts to cloud object storage
125125
if: ${{ (github.repository == 'swoole/swoole-cli') && (startsWith(github.ref, 'refs/tags/')) }}

0 commit comments

Comments
 (0)