-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
25 lines (23 loc) · 783 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Tune GitHub-hosted runner network
description: OS-neutral interface to disable TCP/UDP offload to fix flaky networking on GitHub-hosted runners
author: Sora Morimoto
branding:
icon: wifi
color: gray-dark
runs:
using: composite
steps:
- name: Tune Linux Network
if: ${{ runner.os == 'Linux' }}
shell: bash
run: sudo ethtool -K eth0 tx off rx off
- name: Tune Windows Network
if: ${{ runner.os == 'Windows' }}
shell: pwsh
run: Disable-NetAdapterChecksumOffload -Name * -TcpIPv4 -UdpIPv4 -TcpIPv6 -UdpIPv6
- name: Tune macOS Network
if: ${{ runner.os == 'macOS' }}
shell: bash
run: |
sudo sysctl -w net.link.generic.system.hwcksum_tx=0
sudo sysctl -w net.link.generic.system.hwcksum_rx=0