Skip to content

Commit b2fdfff

Browse files
committed
refactor: replace git clone with submodule update and add retry/timeout in workflows
1 parent f108ad0 commit b2fdfff

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.workflow/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ stages:
2222
command:
2323
- 'apt-get update '
2424
- 'apt-get install -y build-essential curl cmake openssl libssl-dev git '
25-
- 'git clone https://gitee.com/chenxuan520/cpptest src/third_party/cpptest'
26-
- 'cd src '
25+
- git submodule update --init --recursive --depth=1
26+
- cd src
2727
- ./release.sh
2828
- 'cp ./cppnet.tar.gz ../cppnet-ubuntu-release.tar.gz '
2929
- 'cp ./cppnet-ssl.tar.gz ../cppnet-ubuntu-ssl-release.tar.gz '
@@ -63,5 +63,6 @@ stages:
6363
autoIncrement: true
6464
notify: []
6565
strategy:
66-
retry: '0'
66+
retry: '1'
67+
timeout: 20
6768

.workflow/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ stages:
2222
command:
2323
- apt-get update
2424
- apt-get install -y build-essential curl cmake openssl libssl-dev git
25-
- git clone https://gitee.com/chenxuan520/cpptest src/third_party/cpptest
25+
- git submodule update --init --recursive --depth=1
2626
- cd src
2727
- ./build.sh
2828
- ./bin/test_bin

0 commit comments

Comments
 (0)