Skip to content

Commit 5e72765

Browse files
committed
ci: update apt cache in each job
It looks like `update-apt-cache-if-needed` from Makefile does not always recognizes that apt cache needs to be updated during CI. We adjust an explicit step of updating apt cache to each job. I decided to retain the `update-apt-cache-if-needed` in Makefile, since it may be useful for local development.
1 parent 60693ec commit 5e72765

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/build-lint-and-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28+
29+
- name: Update apt cache
30+
run: sudo apt-get update -y
2831

2932
- name: Install dependencies
3033
run: make install-build-dependencies
@@ -66,6 +69,9 @@ jobs:
6669
with:
6770
python-version: '3.11'
6871

72+
- name: Update apt cache
73+
run: sudo apt-get update -y
74+
6975
- name: Install CCM
7076
run: |
7177
make install-ccm-if-missing
@@ -165,6 +171,9 @@ jobs:
165171
uses: actions/setup-python@v5
166172
with:
167173
python-version: '3.11'
174+
175+
- name: Update apt cache
176+
run: sudo apt-get update -y
168177

169178
- name: Install CCM
170179
run: make install-ccm-if-missing

.github/workflows/pkg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,8 @@ jobs:
6060
- name: Checkout
6161
uses: actions/checkout@v4
6262

63+
- name: Update apt cache
64+
run: sudo apt-get update -y
65+
6366
- name: Build deb package for ${{ matrix.dist-version }}
6467
run: ./dist/debian/build_deb.sh --target ${{ matrix.dist-version }}

0 commit comments

Comments
 (0)