Skip to content

Commit cf8ee16

Browse files
committed
CI: speed up gcc and clang-format Ubuntu runs
This is an attempt to speed up the gcc and clang-format CI jobs on the Ubuntu runner, which spends between 2 and 3 minutes on apt-get update and apt-get install. Without apt-get update, the installation of the dependencies (ccache, z3, clang-format) now takes 20 seconds.
1 parent 564222c commit cf8ee16

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
# This is needed in addition to -yq to prevent apt-get from asking for
1919
# user input
2020
DEBIAN_FRONTEND: noninteractive
21-
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
21+
run: sudo apt-get install --no-install-recommends -yq ccache z3
2422
- name: Confirm z3 solver is available and log the version installed
2523
run: z3 --version
24+
- name: Log the version of gcc
25+
run: gcc --version
2626
- name: Prepare ccache
2727
uses: actions/cache@v4
2828
with:

.github/workflows/syntax-checks.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ jobs:
1111
- uses: actions/checkout@v5
1212
with:
1313
submodules: recursive
14-
fetch-depth: 0
1514
- name: Fetch dependencies
1615
env:
1716
# This is needed in addition to -yq to prevent apt-get from asking for
1817
# user input
1918
DEBIAN_FRONTEND: noninteractive
2019
run: |
21-
sudo apt-get update
20+
sudo apt-get remove --purge man-db
2221
sudo apt-get install --no-install-recommends -yq clang-format-15
2322
- name: Check updated lines of code match clang-format-15 style
2423
env:

0 commit comments

Comments
 (0)