Skip to content

Commit

Permalink
Fix macos github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vfisikop committed Oct 10, 2024
1 parent 81053e9 commit 2762137
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/R-CMD-check-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
config:
- {os: macOS-latest, r: '4.1.2'}
- {os: macOS-latest, r: 'release'}
- {os: macOS-13, r: '4.1.2'}
- {os: macOS-13, r: 'release'}
- {os: macOS-12, r: '4.1.2'}
- {os: macOS-12, r: 'release'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand All @@ -37,6 +41,22 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2

- name: Symlink gfortran (macOS)
if: runner.os == 'macOS-12' || runner.os == 'macOS-13'
run: |
# make sure gfortran is available
sudo ln -s /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
sudo mkdir /usr/local/gfortran
sudo ln -s /usr/local/Cellar/gcc@12/*/lib/gcc/12 /usr/local/gfortran/lib
gfortran --version
if: runner.os == 'macOS-14'
run: |
# make sure gfortran is available
sudo ln -s /usr/local/bin/gfortran-13 /usr/local/bin/gfortran
sudo mkdir /usr/local/gfortran
sudo ln -s /usr/local/Cellar/gcc@13/*/lib/gcc/13 /usr/local/gfortran/lib
gfortran --version
- name: Install dependencies
run: Rscript -e "install.packages(c('devtools', dependencies=TRUE))" -e "install.packages(c('rcmdcheck', 'devtools', 'Rcpp', 'RcppEigen', 'BH', 'testthat', 'downloader', 'xfun'))";

Expand Down

0 comments on commit 2762137

Please sign in to comment.