Skip to content

Commit 499bedf

Browse files
jeplerdpgeorge
authored andcommitted
tools/ci.sh: Always call apt-get update before apt-get install.
There have been recent build failures in build_renesas_ra_board. It appears to be the case that a security update for this package was recently issued by Ubuntu for CVE-2025-4565 and the buggy version is no longer on package servers. However, it is still referred to by the cached apt metadata in the GitHub runners. Add `apt-get update` to fix this, and audit for other sites in `ci.sh` where it might also be necessary. Signed-off-by: Jeff Epler <[email protected]>
1 parent df05cae commit 499bedf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/ci.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ ulimit -n 1024
1313
# general helper functions
1414

1515
function ci_gcc_arm_setup {
16+
sudo apt-get update
1617
sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi
1718
arm-none-eabi-gcc --version
1819
}
1920

2021
function ci_gcc_riscv_setup {
22+
sudo apt-get update
2123
sudo apt-get install gcc-riscv64-unknown-elf picolibc-riscv64-unknown-elf
2224
riscv64-unknown-elf-gcc --version
2325
}
@@ -35,6 +37,7 @@ function ci_picotool_setup {
3537
# c code formatting
3638

3739
function ci_c_code_formatting_setup {
40+
sudo apt-get update
3841
sudo apt-get install uncrustify
3942
uncrustify --version
4043
}
@@ -703,6 +706,7 @@ function ci_unix_float_run_tests {
703706
}
704707

705708
function ci_unix_clang_setup {
709+
sudo apt-get update
706710
sudo apt-get install clang
707711
clang --version
708712
}
@@ -839,6 +843,7 @@ function ci_unix_qemu_riscv64_run_tests {
839843
# ports/windows
840844

841845
function ci_windows_setup {
846+
sudo apt-get update
842847
sudo apt-get install gcc-mingw-w64
843848
}
844849

0 commit comments

Comments
 (0)