Skip to content

Commit 6566be2

Browse files
committed
GHA: Add ppa:ubuntu-toolchain-r/test for gcc-10
1 parent c5e3047 commit 6566be2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-linux.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ jobs:
8585
apt-get update
8686
apt-get install -y build-essential git wget curl sudo unzip zip openjdk-11-jdk autoconf libfreetype6-dev libcups2-dev libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev libasound2-dev libffi-dev file binutils libfontconfig-dev
8787
# If we really need gcc-10, we can get it from this PPA:
88-
#sudo add-apt-repository ppa:ubuntu-toolchain-r/test
88+
apt-get install -y software-properties-common
89+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
8990
9091
- name: 'Checkout the JDK source'
9192
uses: actions/checkout@v3
@@ -123,7 +124,7 @@ jobs:
123124
fi
124125
sudo apt-get update
125126
sudo apt-get install --only-upgrade apt
126-
sudo apt-get install gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
127+
sudo apt-get install -y gcc-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} g++-${{ inputs.gcc-major-version }}${{ inputs.gcc-package-suffix }} libxrandr-dev${{ steps.arch.outputs.suffix }} libxtst-dev${{ steps.arch.outputs.suffix }} libcups2-dev${{ steps.arch.outputs.suffix }} libasound2-dev${{ steps.arch.outputs.suffix }} ${{ inputs.apt-extra-packages }}
127128
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
128129
129130
- name: 'Configure'

0 commit comments

Comments
 (0)