Skip to content

Commit 2131bec

Browse files
committed
Use apt-spy2 to fix connectivity issues to azure.archive.ubuntu.com.
1 parent 1a46e7a commit 2131bec

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

.github/workflows/cleanbuild.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
env:
2424
COMPILER: ${{ matrix.compiler }}
2525
TAR_CMD: tar_nosuid
26+
GHA_OS: ${{ matrix.os }}
2627

2728
strategy:
2829
matrix:
@@ -52,7 +53,7 @@ jobs:
5253
submodules: 'recursive'
5354

5455
- name: apt_get_update
55-
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
56+
run: scripts/ft-apt-get-update.sh
5657

5758
- name: Workaround for tar not being able to access /var/cache/apt/archives
5859
run: |

.github/workflows/depsbuild.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
env:
2424
COMPILER: ${{ matrix.compiler }}
2525
TAR_CMD: tar_nosuid
26+
GHA_OS: ${{ matrix.os }}
2627

2728
strategy:
2829
matrix:
@@ -52,7 +53,7 @@ jobs:
5253
submodules: 'recursive'
5354

5455
- name: apt_get_update
55-
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
56+
run: scripts/ft-apt-get-update.sh
5657

5758
- name: Workaround for tar not being able to access /var/cache/apt/archives
5859
run: |

.github/workflows/functesting.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
env:
2424
COMPILER: ${{ matrix.compiler }}
2525
TAR_CMD: tar_nosuid
26+
GHA_OS: ${{ matrix.os }}
2627

2728
strategy:
2829
matrix:
@@ -48,7 +49,7 @@ jobs:
4849
submodules: 'recursive'
4950

5051
- name: apt_get_update
51-
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
52+
run: scripts/ft-apt-get-update.sh
5253

5354
- name: Get Date
5455
id: get-date

.github/workflows/glitching.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
env:
2424
COMPILER: ${{ matrix.compiler }}
2525
TAR_CMD: tar_nosuid
26+
GHA_OS: ${{ matrix.os }}
2627

2728
strategy:
2829
matrix:
@@ -37,7 +38,7 @@ jobs:
3738
submodules: 'recursive'
3839

3940
- name: apt_get_update
40-
run: sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
41+
run: scripts/ft-apt-get-update.sh
4142

4243
- name: Get Date
4344
id: get-date

scripts/ft-apt-get-update.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
if [ "${GHA_OS}" == "ubuntu-18.04" ]
4+
then
5+
sudo gem install apt-spy2 -v 0.7.2
6+
else
7+
sudo gem install apt-spy2
8+
fi
9+
sudo apt-spy2 check
10+
sudo apt-spy2 fix --commit
11+
sudo -H DEBIAN_FRONTEND=noninteractive apt-get update

0 commit comments

Comments
 (0)