Skip to content

Commit 0952501

Browse files
committed
Add speedup for cppcheck
1 parent dbad322 commit 0952501

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/threadpool.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,22 @@ jobs:
456456
with:
457457
cmake-version: '4.1.x'
458458

459+
- name: Speedup APT
460+
run: |
461+
sudo tee /etc/dpkg/dpkg.cfg.d/01_nodoc > /dev/null << 'EOF'
462+
path-exclude /usr/share/doc/*
463+
path-exclude /usr/share/man/*
464+
path-exclude /usr/share/info/*
465+
sudo chown root /bin/tar && sudo chmod u+s /bin/tar
466+
467+
- name: Cache APT packages
468+
uses: actions/cache@v4
469+
with:
470+
path: /var/cache/apt
471+
key: ${{ github.job }}-apt-${{ hashFiles('**/apt-packages.txt') }}
472+
restore-keys: |
473+
${{ github.job }}-apt-
474+
459475
- name: Install dependencies on ubuntu
460476
run: |
461477
sudo apt-get install ninja-build

0 commit comments

Comments
 (0)