danbev commited on
Commit
62dd144
·
unverified ·
1 Parent(s): 9994342

ci : use mirrors.kernel.org for Ubuntu packages (#3220)

Browse files

This commit updates the ubuntu jobs to use mirrors sites instead of archive.ubuntu.com.

The motivation of this is an attempt to make the CI build more stable and avoid errors like:
https://github.com/ggml-org/whisper.cpp/actions/runs/15384056535/job/43291948394?pr=3217

Files changed (1) hide show
  1. .github/workflows/build.yml +32 -0
.github/workflows/build.yml CHANGED
@@ -101,6 +101,10 @@ jobs:
101
  -v ${{ github.workspace }}:/workspace \
102
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
103
  set -e
 
 
 
 
104
  apt update
105
  apt install -y build-essential libsdl2-dev cmake git
106
  cmake -B build
@@ -129,6 +133,10 @@ jobs:
129
  -v ${{ github.workspace }}:/workspace \
130
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
131
  set -e
 
 
 
 
132
  apt update
133
  apt install -y build-essential libsdl2-dev cmake git
134
  cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
@@ -157,6 +165,10 @@ jobs:
157
  -v ${{ github.workspace }}:/workspace \
158
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
159
  set -e
 
 
 
 
160
  apt update
161
  apt install -y build-essential libsdl2-dev cmake git
162
  cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv7-a+fp
@@ -242,6 +254,10 @@ jobs:
242
  -v ${{ github.workspace }}:/workspace \
243
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
244
  set -e
 
 
 
 
245
  apt update
246
  apt install -y build-essential cmake libsdl2-dev git
247
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }}
@@ -272,6 +288,10 @@ jobs:
272
  -v ${{ github.workspace }}:/workspace \
273
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
274
  set -e
 
 
 
 
275
  apt update
276
  apt install -y build-essential cmake libsdl2-dev git
277
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
@@ -302,6 +322,10 @@ jobs:
302
  -v ${{ github.workspace }}:/workspace \
303
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
304
  set -e
 
 
 
 
305
  apt update
306
  apt install -y build-essential cmake libsdl2-dev git
307
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv7-a+fp
@@ -335,6 +359,10 @@ jobs:
335
  -v ${{ github.workspace }}:/workspace \
336
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
337
  set -e
 
 
 
 
338
  apt update
339
  apt install -y clang build-essential cmake libsdl2-dev git
340
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
@@ -365,6 +393,10 @@ jobs:
365
  -v ${{ github.workspace }}:/workspace \
366
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
367
  set -e
 
 
 
 
368
  apt update
369
  apt install -y build-essential cmake git
370
  cmake . -DCMAKE_BUILD_TYPE=Debug \
 
101
  -v ${{ github.workspace }}:/workspace \
102
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
103
  set -e
104
+ export DEBIAN_FRONTEND=noninteractive
105
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
106
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
107
+
108
  apt update
109
  apt install -y build-essential libsdl2-dev cmake git
110
  cmake -B build
 
133
  -v ${{ github.workspace }}:/workspace \
134
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
135
  set -e
136
+ export DEBIAN_FRONTEND=noninteractive
137
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
138
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
139
+
140
  apt update
141
  apt install -y build-essential libsdl2-dev cmake git
142
  cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
 
165
  -v ${{ github.workspace }}:/workspace \
166
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
167
  set -e
168
+ export DEBIAN_FRONTEND=noninteractive
169
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
170
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
171
+
172
  apt update
173
  apt install -y build-essential libsdl2-dev cmake git
174
  cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv7-a+fp
 
254
  -v ${{ github.workspace }}:/workspace \
255
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
256
  set -e
257
+ export DEBIAN_FRONTEND=noninteractive
258
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
259
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
260
+
261
  apt update
262
  apt install -y build-essential cmake libsdl2-dev git
263
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }}
 
288
  -v ${{ github.workspace }}:/workspace \
289
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
290
  set -e
291
+ export DEBIAN_FRONTEND=noninteractive
292
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
293
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
294
+
295
  apt update
296
  apt install -y build-essential cmake libsdl2-dev git
297
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
 
322
  -v ${{ github.workspace }}:/workspace \
323
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
324
  set -e
325
+ export DEBIAN_FRONTEND=noninteractive
326
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
327
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
328
+
329
  apt update
330
  apt install -y build-essential cmake libsdl2-dev git
331
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv7-a+fp
 
359
  -v ${{ github.workspace }}:/workspace \
360
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
361
  set -e
362
+ export DEBIAN_FRONTEND=noninteractive
363
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
364
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
365
+
366
  apt update
367
  apt install -y clang build-essential cmake libsdl2-dev git
368
  cmake . -DWHISPER_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
 
393
  -v ${{ github.workspace }}:/workspace \
394
  -w /workspace ${{ env.ubuntu_image }} /bin/sh -c '
395
  set -e
396
+ export DEBIAN_FRONTEND=noninteractive
397
+ sed -i "s|archive.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
398
+ sed -i "s|security.ubuntu.com|mirrors.kernel.org|g" /etc/apt/sources.list
399
+
400
  apt update
401
  apt install -y build-essential cmake git
402
  cmake . -DCMAKE_BUILD_TYPE=Debug \