Skip to content

Commit 286f9ce

Browse files
committed
try to install gcc-6 from ubuntu 18
1 parent 2e070fd commit 286f9ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ jobs:
1515
build-type: ['release', 'debug']
1616
node-version: ['16']
1717

18+
# Download and install gcc-6 and g++-6 from Ubuntu 18.04
1819
steps:
1920
- uses: actions/checkout@v4
2021
- name: Install packages
2122
run: |
22-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
2323
sudo apt update
24-
sudo apt-get install -y gcc-6 g++-6 libstdc++-6-dev
24+
sudo apt install -y wget
25+
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-6/gcc-6_6.5.0-2ubuntu1~18.04_amd64.deb
26+
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-6/g++-6_6.5.0-2ubuntu1~18.04_amd64.deb
27+
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-6/libstdc++-6-dev_6.5.0-2ubuntu1~18.04_amd64.deb
28+
sudo dpkg -i gcc-6_6.5.0-2ubuntu1~18.04_amd64.deb g++-6_6.5.0-2ubuntu1~18.04_amd64.deb libstdc++-6-dev_6.5.0-2ubuntu1~18.04_amd64.deb
2529
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60
2630
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 60
2731

0 commit comments

Comments
 (0)