Skip to content

Commit 0868f24

Browse files
committed
Ensure apt is updated before installing packages
1 parent 88d2172 commit 0868f24

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/build-cross.yml

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
tar xaf ocaml.tar.zst -C "$HOME"
7878
rm -f ocaml.tar.zst
7979
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
80+
sudo apt-get update -y
8081
sudo apt-get install -y gcc-mingw-w64-x86-64
8182
- name: Checkout OCaml
8283
uses: actions/checkout@v4
@@ -145,6 +146,7 @@ jobs:
145146
tar xaf ocaml.tar.zst -C "$HOME"
146147
rm -f ocaml.tar.zst
147148
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
149+
sudo apt-get update -y
148150
sudo apt-get install -y gcc-aarch64-linux-gnu qemu-user
149151
- name: Checkout OCaml
150152
uses: actions/checkout@v4

.github/workflows/build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ jobs:
104104
- name: Packages
105105
if: matrix.dependencies != ''
106106
run: |
107-
sudo apt-get update -y && sudo apt-get install -y ${{ matrix.dependencies }}
107+
sudo apt-get update -y
108+
sudo apt-get install -y ${{ matrix.dependencies }}
108109
- name: Run the testsuite
109110
if: matrix.id == 'normal'
110111
run: |
@@ -216,7 +217,7 @@ jobs:
216217
steps:
217218
- name: OS Dependencies
218219
run: |
219-
apt-get update
220+
apt-get update -y
220221
apt-get install -y git gcc make parallel
221222
adduser --disabled-password --gecos '' ocaml
222223
- name: Checkout

.github/workflows/tsan.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
with:
3434
persist-credentials: false
3535
- name: Install libunwind
36-
run: sudo apt install -y libunwind-dev
36+
run: |
37+
sudo apt-get update -y
38+
sudo apt-get install -y libunwind-dev
3739
# This temporary workaround reduces the number of random bits for the base
3840
# address of vma regions for mmap allocation, to avoid the
3941
# "FATAL: ThreadSanitizer: unexpected memory mapping" TSan error.
@@ -85,7 +87,8 @@ jobs:
8587
- name: Packages
8688
if: matrix.dependencies != ''
8789
run: |
88-
sudo apt-get update -y && sudo apt-get install -y ${{ matrix.dependencies }}
90+
sudo apt-get update -y
91+
sudo apt-get install -y ${{ matrix.dependencies }}
8992
- name: Run the testsuite
9093
if: matrix.id == 'normal'
9194
# Run testsuite with 30-minute timeout per test

0 commit comments

Comments
 (0)