Skip to content

Commit d4de8c0

Browse files
authored
Merge pull request #1372 from diffblue/ubuntu-ci-speedup
CI: speed up Ubuntu runs
2 parents 564222c + 4699a1e commit d4de8c0

File tree

2 files changed

+44
-12
lines changed

2 files changed

+44
-12
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@ jobs:
1919
# user input
2020
DEBIAN_FRONTEND: noninteractive
2121
run: |
22-
sudo apt-get update
23-
sudo apt-get install --no-install-recommends -yq gcc gdb g++ jq flex bison libxml2-utils ccache cmake z3
22+
sudo apt-get remove --purge man-db
23+
packages_to_install="ccache z3"
24+
if ! sudo apt-get install --no-install-recommends -yq $packages_to_install ; then
25+
# retry after updating package indices
26+
sudo apt-get update
27+
sudo apt-get install --no-install-recommends -yq $packages_to_install
28+
fi
2429
- name: Confirm z3 solver is available and log the version installed
2530
run: z3 --version
31+
- name: Log the version of gcc
32+
run: gcc --version
2633
- name: Prepare ccache
2734
uses: actions/cache@v4
2835
with:
@@ -77,8 +84,13 @@ jobs:
7784
# user input
7885
DEBIAN_FRONTEND: noninteractive
7986
run: |
80-
sudo apt-get update
81-
sudo apt-get install --no-install-recommends -yq clang-19 clang++-19 gdb jq flex bison libxml2-utils cpanminus ccache z3
87+
sudo apt-get remove --purge man-db
88+
packages_to_install="clang-19 clang++-19 gdb jq flex bison libxml2-utils cpanminus ccache z3"
89+
if ! sudo apt-get install --no-install-recommends -yq $packages_to_install ; then
90+
# retry after updating package indices
91+
sudo apt-get update
92+
sudo apt-get install --no-install-recommends -yq $packages_to_install
93+
fi
8294
cpanm Thread::Pool::Simple
8395
- name: Confirm z3 solver is available and log the version installed
8496
run: z3 --version
@@ -152,8 +164,13 @@ jobs:
152164
# user input
153165
DEBIAN_FRONTEND: noninteractive
154166
run: |
155-
sudo apt-get update
156-
sudo apt-get install --no-install-recommends z3
167+
sudo apt-get remove --purge man-db
168+
packages_to_install="z3"
169+
if ! sudo apt-get install --no-install-recommends -yq $packages_to_install ; then
170+
# retry after updating package indices
171+
sudo apt-get update
172+
sudo apt-get install --no-install-recommends -yq $packages_to_install
173+
fi
157174
- name: Confirm z3 solver is available and log the version installed
158175
run: z3 --version
159176
- name: Get the ebmc binary
@@ -340,8 +357,13 @@ jobs:
340357
# user input
341358
DEBIAN_FRONTEND: noninteractive
342359
run: |
343-
sudo apt-get update
344-
sudo apt-get install --no-install-recommends -yq emscripten flex bison libxml2-utils cpanminus ccache
360+
sudo apt-get remove --purge man-db
361+
packages_to_install="emscripten flex bison libxml2-utils cpanminus ccache"
362+
if ! sudo apt-get install --no-install-recommends -yq $packages_to_install ; then
363+
# retry after updating package indices
364+
sudo apt-get update
365+
sudo apt-get install --no-install-recommends -yq $packages_to_install
366+
fi
345367
- name: Install node.js 23
346368
uses: actions/setup-node@v6
347369
with:
@@ -478,8 +500,13 @@ jobs:
478500
# user input
479501
DEBIAN_FRONTEND: noninteractive
480502
run: |
481-
sudo apt-get update
482-
sudo apt-get install --no-install-recommends -yq z3
503+
sudo apt-get remove --purge man-db
504+
packages_to_install="z3"
505+
if ! sudo apt-get install --no-install-recommends -yq $packages_to_install ; then
506+
# retry after updating package indices
507+
sudo apt-get update
508+
sudo apt-get install --no-install-recommends -yq $packages_to_install
509+
fi
483510
- name: Confirm z3 solver is available and log the version installed
484511
run: z3 --version
485512
- name: Get the ebmc binary

.github/workflows/syntax-checks.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ jobs:
1818
# user input
1919
DEBIAN_FRONTEND: noninteractive
2020
run: |
21-
sudo apt-get update
22-
sudo apt-get install --no-install-recommends -yq clang-format-15
21+
sudo apt-get remove --purge man-db
22+
packages_to_install="clang-format-15"
23+
if ! sudo apt-get install --no-install-recommends -yq $packages_to_install ; then
24+
# retry after updating package indices
25+
sudo apt-get update
26+
sudo apt-get install --no-install-recommends -yq $packages_to_install
27+
fi
2328
- name: Check updated lines of code match clang-format-15 style
2429
env:
2530
BASE_BRANCH: ${{ github.base_ref }}

0 commit comments

Comments
 (0)