Skip to content

Commit f98ba0d

Browse files
authored
Fix macos CI (#340)
1 parent 3713bfc commit f98ba0d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/R-CMD-check-macOS.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
config:
23-
- {os: macOS-latest, r: '4.1.2'}
23+
# - {os: macOS-latest, r: '4.2.0'} # Error: Package required but not available: ‘RcppEigen’
2424
# - {os: macOS-latest, r: 'devel'} # Error in library(devtools) : there is no package called ‘devtools’
2525
- {os: macOS-latest, r: 'release'}
2626

@@ -39,20 +39,25 @@ jobs:
3939
- uses: r-lib/actions/setup-pandoc@v2
4040

4141
- name: Install dependencies
42-
run: Rscript -e "install.packages(c('devtools', dependencies=TRUE))" -e "install.packages(c('rcmdcheck', 'devtools', 'Rcpp', 'RcppEigen', 'BH', 'testthat', 'downloader', 'xfun'))";
42+
run: |
43+
Rscript -e "options(repos = c(CRAN = 'https://cloud.r-project.org'))"
44+
Rscript -e "install.packages('devtools', dependencies=TRUE, repos='https://cloud.r-project.org')"
45+
Rscript -e "install.packages(c('rcmdcheck', 'Rcpp', 'RcppEigen', 'BH', 'testthat', 'downloader', 'xfun'), repos='https://cloud.r-project.org')"
4346
4447
- name: Checkout Rvolesti repository
4548
run: git clone https://github.com/GeomScale/Rvolesti.git;
4649

4750
- name: Upgrade with current develop of volesti
48-
run: cp -rf include Rvolesti/src/volesti;
49-
cp -rf external Rvolesti/src;
51+
run: |
52+
cp -rf include Rvolesti/src/volesti
53+
cp -rf external Rvolesti/src
5054
5155
- name: Check
5256
env:
5357
_R_CHECK_CRAN_INCOMING_REMOTE_: false
54-
run: cd Rvolesti/;
55-
Rscript -e "library(rcmdcheck)" -e "rcmdcheck::rcmdcheck(args = c('--no-manual'), error_on = 'warning', check_dir = 'check')"
58+
run: |
59+
cd Rvolesti/
60+
Rscript -e "library(rcmdcheck)" -e "rcmdcheck::rcmdcheck(args = c('--no-manual'), error_on = 'warning', check_dir = 'check')"
5661
5762
- name: Upload check results
5863
if: failure()

0 commit comments

Comments
 (0)