Skip to content

Commit 0e81751

Browse files
committed
Fix attempt #4
1 parent 438efb3 commit 0e81751

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ jobs:
3939
id: update_lib
4040
run: |
4141
if ! (
42-
sudo apt-get -o Acquire::ForceIPv4=true update -y || apt-get -o Acquire::ForceIPv4=true update -y
43-
sudo apt-get -o Acquire::ForceIPv4=true install software-properties-common wget -y || apt-get -o Acquire::ForceIPv4=true install software-properties-common wget -y
44-
for i in {1..5}; do
45-
(sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y || add-apt-repository ppa:ubuntu-toolchain-r/test -y) &&
46-
(sudo apt-get -o Acquire::ForceIPv4=true update -y || apt-get -o Acquire::ForceIPv4=true update -y) &&
47-
(sudo apt-get -o Acquire::ForceIPv4=true install --only-upgrade libstdc++6 -y || apt-get -o Acquire::ForceIPv4=true install --only-upgrade libstdc++6 -y) && break || sleep 15
48-
done
42+
wget "http://mirrors.kernel.org/ubuntu/pool/main/g/gcc-13/libstdc++6_13.2.0-23ubuntu4_amd64.deb" -O libstdc++6.deb ||
43+
wget "http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-13/libstdc++6_13.2.0-23ubuntu4_amd64.deb" -O libstdc++6.deb
4944
); then
45+
echo "::warning::Could not download libstdc++6 manually. Passing step and skipping remainder of job."
46+
echo "**Notice:** Could not validate the commit (failed to download libstdc++ manually due to network timeouts). The rest of the job has been skipped." >> "$GITHUB_STEP_SUMMARY"
47+
echo "SKIP_JOB=true" >> "$GITHUB_ENV"
48+
exit 0
49+
fi
50+
sudo dpkg -i libstdc++6.deb || true
51+
# Optional: also grab the libgcc_s1 dependency frequently needed by gcc-13
52+
wget "http://mirrors.kernel.org/ubuntu/pool/main/g/gcc-13/libgcc-s1_13.2.0-23ubuntu4_amd64.deb" -O libgcc.deb || true
53+
sudo dpkg -i libgcc.deb || true
5054
echo "::warning::Could not update libstdc++ from Launchpad (network timeout). Passing step and skipping remainder of job."
5155
echo "**Notice:** Could not validate the commit (failed to update libstdc++ due to apt network timeouts). The rest of the job has been skipped." >> "$GITHUB_STEP_SUMMARY"
5256
echo "SKIP_JOB=true" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)