Skip to content

Commit de22444

Browse files
basmeermanclaude
andcommitted
ci: add apt-get update before all apt-get install steps
Fixes transient 404 failures (libc6-dbg, valgrind, lcov, cppcheck) caused by stale apt mirror metadata on GitHub-hosted ubuntu-latest runners. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3e1d8c2 commit de22444

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
working-directory: SmartEVSE-3/test/native
2424
- name: Generate coverage report
2525
run: |
26-
sudo apt-get -qq install -y lcov
26+
sudo apt-get update -qq && sudo apt-get -qq install -y lcov
2727
lcov --capture --directory SmartEVSE-3/test/native/build --output-file coverage.info --include '*/evse_state_machine.c'
2828
lcov --list coverage.info
2929
- name: Upload coverage artifact
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3939
- name: Install cppcheck
40-
run: sudo apt-get -qq install -y cppcheck
40+
run: sudo apt-get update -qq && sudo apt-get -qq install -y cppcheck
4141
- name: Run cppcheck on state machine module
4242
run: |
4343
cppcheck --enable=warning,style,performance \
@@ -64,7 +64,7 @@ jobs:
6464
steps:
6565
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6666
- name: Install Valgrind
67-
run: sudo apt-get -qq install -y valgrind
67+
run: sudo apt-get update -qq && sudo apt-get -qq install -y valgrind
6868
- name: Build tests
6969
run: make clean all
7070
working-directory: SmartEVSE-3/test/native

0 commit comments

Comments
 (0)