Skip to content

Commit 884cdf9

Browse files
committed
Bound tmux install in Freebuff e2e
1 parent e0376e0 commit 884cdf9

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/freebuff-e2e.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,20 @@ jobs:
7373
- uses: ./.github/actions/setup-project
7474

7575
- name: Install tmux
76-
run: sudo apt-get update && sudo apt-get install -y tmux
76+
run: |
77+
if command -v tmux >/dev/null 2>&1; then
78+
tmux -V
79+
exit 0
80+
fi
81+
82+
timeout 120s sudo apt-get install -y --no-install-recommends tmux || (
83+
timeout 120s sudo apt-get update \
84+
-o Acquire::Retries=3 \
85+
-o Acquire::http::Timeout=20 \
86+
-o Acquire::https::Timeout=20 &&
87+
timeout 120s sudo apt-get install -y --no-install-recommends tmux
88+
)
89+
tmux -V
7790
7891
- name: Download Freebuff binary
7992
uses: actions/download-artifact@v8

0 commit comments

Comments
 (0)