Skip to content

Commit

Permalink
Remove broken packages from GitHub Actions runner (php from ppa:ondre…
Browse files Browse the repository at this point in the history
…j/php)
  • Loading branch information
ibauersachs committed May 21, 2023
1 parent f95c161 commit 4135ac8
Show file tree
Hide file tree
Showing 2 changed files with 442 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/maven-and-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,14 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
run: |
ls -al /etc/apt/sources.list.d/
cat /etc/apt/sources.list
sudo rm -f /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-focal.list
sudo apt-get remove --purge g++-9 g++-10
sudo apt-get autoremove --purge
# Remove broken packages from pre-installed php in Actions image
# No longer needed in ubuntu-22.04
sudo apt-get remove -y libpcre2-dev libicu-dev icu-devtools
sudo apt-add-repository ppa:ondrej/php -y
sudo apt-get install -y aptitude
echo "Get::allow-downgrades \"true\";" | sudo tee /etc/apt/apt.conf.d/99-downgrades
echo "Get::Assume-Yes \"true\";" | sudo tee -a /etc/apt/apt.conf.d/99-downgrades
sudo ./ubuntu-build-image/ppa-purge.sh ppa:ondrej/php -y true
if [ "${{ matrix.arch }}" != "i386" ] && [ "${{ matrix.arch }}" != "x86-64" ]; then
sudo cp -f resources/ubuntu-build-image/ports-sources.list /etc/apt/sources.list
fi
Expand Down

0 comments on commit 4135ac8

Please sign in to comment.