Skip to content

Commit

Permalink
set net.ipv4.tcp_keepalive_time=60 only on Linux runners
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Polyakovskiy committed Feb 11, 2022
1 parent 3f4d4b8 commit 71f5465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
run: |
sudo sysctl -w net.ipv4.tcp_keepalive_time=60
[[ ${{ runner.os }} == Linux ]] && sudo sysctl -w net.ipv4.tcp_keepalive_time=60
case ${{ runner.os }} in
macOS) BUILD_CONFIG=ci-macos-nixpkgs;;
Linux) BUILD_CONFIG=ci-linux-nixpkgs;;
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
shell: bash
run: |
sudo sysctl -w net.ipv4.tcp_keepalive_time=60
[[ ${{ runner.os }} == Linux ]] && sudo sysctl -w net.ipv4.tcp_keepalive_time=60
case ${{ runner.os }} in
macOS) BUILD_CONFIG=ci-macos-bindist;;
Linux) BUILD_CONFIG=ci-linux-bindist;;
Expand Down

0 comments on commit 71f5465

Please sign in to comment.