Skip to content

Commit a8c3d9e

Browse files
committed
Disable man-db auto-update in GHAs (#248)
The dpkg man-db trigger is excessively slow on GHA runners, see e.g.: - actions/runner-images#10977 - actions/runner#4030 We disable it so it does not fire at the end of an `apt-get install`. This can easily shave a minute or two off the execution time. GUS-W-19995078
1 parent a62adf0 commit a8c3d9e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
steps:
4646
- name: Checkout
4747
uses: actions/checkout@v5
48+
# The dpkg man-db trigger is excessively slow on GHA runners, see e.g.:
49+
# https://github.com/actions/runner-images/issues/10977
50+
# https://github.com/actions/runner/issues/4030
51+
# We disable it here so it does not fire at the end of the following apt-get install
52+
- name: Disable man-db auto-update
53+
run: sudo rm -f /var/lib/man-db/auto-update
4854
- name: Install musl-tools
4955
run: sudo apt-get install musl-tools --no-install-recommends
5056
- name: Update Rust toolchain
@@ -68,6 +74,12 @@ jobs:
6874
steps:
6975
- name: Checkout
7076
uses: actions/checkout@v5
77+
# The dpkg man-db trigger is excessively slow on GHA runners, see e.g.:
78+
# https://github.com/actions/runner-images/issues/10977
79+
# https://github.com/actions/runner/issues/4030
80+
# We disable it here so it does not fire at the end of the following apt-get install
81+
- name: Disable man-db auto-update
82+
run: sudo rm -f /var/lib/man-db/auto-update
7183
- name: Install musl-tools
7284
run: sudo apt-get install -y --no-install-recommends musl-tools
7385
- name: Update Rust toolchain

0 commit comments

Comments
 (0)