Skip to content

Commit edb6635

Browse files
bkietzjimhester
andauthored
check for compilation errors with GCC 4.8 (#78)
Co-authored-by: Jim Hester <[email protected]>
1 parent 0e0442d commit edb6635

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- {os: ubuntu-16.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
2525
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
2626
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest", custom: 'no-cpp11test'}
27+
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest", custom: 'gcc 4.8'}
2728
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
2829
- {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
2930
- {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
@@ -72,6 +73,12 @@ jobs:
7273
sudo apt install g++-6 -y
7374
echo $'CXX1X=g++-6\nCXX11=g++-6' >> ~/.R/Makevars
7475
76+
- name : Install compiler version
77+
if: matrix.config.custom == 'gcc 4.8'
78+
run: |
79+
sudo apt-get install -y g++-4.8
80+
echo $'CXX1X=g++-4.8\nCXX11=g++-4.8' >> ~/.R/Makevars
81+
7582
- name: install macOS system dependecies
7683
if: runner.os == 'macOS'
7784
run: brew cask install xquartz
@@ -84,6 +91,8 @@ jobs:
8491

8592
- name: Install cpp11test
8693
if: matrix.config.custom != 'no-cpp11test'
94+
env:
95+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: false
8796
run: |
8897
remotes::install_local("cpp11test", dependencies = TRUE, INSTALL_opts = "--install-tests", force = TRUE)
8998
shell: Rscript {0}

0 commit comments

Comments
 (0)