Skip to content

Commit febe451

Browse files
gqian-coderclaude
authored andcommitted
ci: refresh the apt package lists before installing packages
The build workflow failed in build-MGARD's first step, `sudo apt-get install ...`, with exit code 100, before the code was checked out; the same step passed on master on 2026-10-14. The usual cause is stale package lists: hosted runners ship with the lists from when the image was built, and the mirror drops package versions that have since been superseded. Run `apt-get update` first in every job that installs packages, as GitHub recommends for its hosted runners. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 580d2ed commit febe451

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
build-MOAB:
1818
runs-on: ubuntu-24.04
1919
steps:
20-
- run: sudo apt-get install mpich libmpich-dev liblapack-dev
20+
- run: sudo apt-get update && sudo apt-get install mpich libmpich-dev liblapack-dev
2121
- name: cache-MOAB
2222
id: cache-MOAB
2323
uses: actions/cache@v4
@@ -97,7 +97,7 @@ jobs:
9797
needs: [build-MOAB, build-Catch2, build-TCLAP, build-ZSTD]
9898
runs-on: ubuntu-24.04
9999
steps:
100-
- run: sudo apt-get install mpich doxygen libmpich-dev liblapack-dev libzstd1 libzstd-dev libtclap-dev protobuf-compiler libprotobuf-dev
100+
- run: sudo apt-get update && sudo apt-get install mpich doxygen libmpich-dev liblapack-dev libzstd1 libzstd-dev libtclap-dev protobuf-compiler libprotobuf-dev
101101
- name: checkout
102102
uses: actions/checkout@v4
103103
- name: fetch-MOAB

‎.github/workflows/format.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
clang-format:
88
runs-on: ubuntu-22.04
99
steps:
10-
- run: sudo apt-get install clang-format
10+
- run: sudo apt-get update && sudo apt-get install clang-format
1111
- uses: actions/checkout@v2.3.4
1212
with:
1313
repository: Sarcasm/run-clang-format

0 commit comments

Comments
 (0)