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 2eed118
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 107 deletions.
22 changes: 22 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,24 @@ jobs:

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

- name: Symlink gfortran (macOS 12 or 13)
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 -p /usr/local/gfortran
sudo ln -s /usr/local/Cellar/gcc@12/*/lib/gcc/12 /usr/local/gfortran/lib
gfortran --version
- name: Symlink gfortran (macOS 14)
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 -p /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
55 changes: 0 additions & 55 deletions .github/workflows/R-CMD-check-ubuntu.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/R-CMD-check-windows.yml

This file was deleted.

0 comments on commit 2eed118

Please sign in to comment.