Skip to content

Commit 9171ef3

Browse files
committed
Add an apt-get update step to the ubuntu CI builds.
This stops it from getting an HTTP 404 while downloading dependencies if they have been updated since the image came out. This has been an issue for example with the check-docker-image build, which was failing because of a dependency moved.
1 parent 3b406c6 commit 9171ef3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
# user input
1717
DEBIAN_FRONTEND: noninteractive
1818
run: |
19+
sudo apt-get update
1920
sudo apt-get install --no-install-recommends -yq gcc gdb g++ maven jq flex bison libxml2-utils ccache cmake
2021
- name: Prepare ccache
2122
uses: actions/cache@v2
@@ -70,6 +71,7 @@ jobs:
7071
# user input
7172
DEBIAN_FRONTEND: noninteractive
7273
run: |
74+
sudo apt-get update
7375
sudo apt-get install --no-install-recommends -yq cmake ninja-build gcc g++ maven flex bison libxml2-utils dpkg-dev ccache doxygen
7476
- name: Prepare ccache
7577
uses: actions/cache@v2
@@ -232,6 +234,7 @@ jobs:
232234
# user input
233235
DEBIAN_FRONTEND: noninteractive
234236
run: |
237+
sudo apt-get update
235238
sudo apt-get install --no-install-recommends -yq clang-format-7
236239
- name: Check updated lines of code match clang-format-7 style
237240
env:
@@ -313,7 +316,9 @@ jobs:
313316
with:
314317
submodules: recursive
315318
- name: Fetch dependencies
316-
run: sudo apt-get install --no-install-recommends -y g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
319+
run: |
320+
sudo apt-get update
321+
sudo apt-get install --no-install-recommends -y g++ flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
317322
- name: Prepare ccache
318323
uses: actions/cache@v2
319324
with:
@@ -365,7 +370,9 @@ jobs:
365370
with:
366371
submodules: recursive
367372
- name: Download test dependencies
368-
run: sudo apt install openjdk-11-jdk-headless
373+
run: |
374+
sudo apt update
375+
sudo apt install openjdk-11-jdk-headless
369376
- name: Build docker image
370377
run: docker build -t cbmc .
371378
- name: Smoke test goto-cc

0 commit comments

Comments
 (0)