Skip to content

Commit 6a2994a

Browse files
committed
Add old archives to be able to install gcc 4.8
1 parent d15902a commit 6a2994a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,19 @@ jobs:
5454
use-public-rspm: true
5555

5656
- name : Install compiler version
57+
# We check on this old compiler specifically to support CentOS 7,
58+
# which uses this gcc version. RStudio products support CentOS 7 through
59+
# June 2024.
60+
# https://github.com/r-lib/cpp11/pull/78
61+
# https://www.rstudio.com/about/platform-support/
62+
# Ubuntu 20.04 technically dropped support for gcc 4.8, so we have to
63+
# add old archives back in manually to install it
64+
# https://github.com/r-lib/cpp11/pull/279
5765
if: matrix.config.custom == 'gcc 4.8'
5866
run: |
67+
echo "deb http://dk.archive.ubuntu.com/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list
68+
echo "deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe" | sudo tee -a /etc/apt/sources.list
69+
sudo apt update
5970
sudo apt-get install -y g++-4.8
6071
mkdir ~/.R/
6172
echo $'CXX1X=g++-4.8\nCXX11=g++-4.8' >> ~/.R/Makevars

0 commit comments

Comments
 (0)