Skip to content

Commit eda796f

Browse files
committed
Fix macos github actions
1 parent 81053e9 commit eda796f

File tree

3 files changed

+27
-107
lines changed

3 files changed

+27
-107
lines changed

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

+27
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
config:
2323
- {os: macOS-latest, r: '4.1.2'}
2424
- {os: macOS-latest, r: 'release'}
25+
- {os: macOS-13, r: '4.1.2'}
26+
- {os: macOS-13, r: 'release'}
27+
- {os: macOS-12, r: '4.1.2'}
28+
- {os: macOS-12, r: 'release'}
2529

2630
env:
2731
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
@@ -37,6 +41,29 @@ jobs:
3741

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

44+
- name: Check runner.os
45+
run: echo "Operating System: ${{ runner.os }}"
46+
- name: Check matrix.os
47+
run: echo "Operating System: ${{ matrix.config.os }}
48+
49+
- name: Symlink gfortran (macOS 12 or 13)
50+
if: runner.os == 'macOS-12' || runner.os == 'macOS-13'
51+
run: |
52+
# make sure gfortran is available
53+
sudo ln -s /usr/local/bin/gfortran-12 /usr/local/bin/gfortran
54+
sudo mkdir -p /usr/local/gfortran
55+
sudo ln -s /usr/local/Cellar/gcc@12/*/lib/gcc/12 /usr/local/gfortran/lib
56+
gfortran --version
57+
58+
- name: Symlink gfortran (macOS 14)
59+
if: runner.os == 'macOS-14'
60+
run: |
61+
# make sure gfortran is available
62+
sudo ln -s /usr/local/bin/gfortran-13 /usr/local/bin/gfortran
63+
sudo mkdir -p /usr/local/gfortran
64+
sudo ln -s /usr/local/Cellar/gcc@13/*/lib/gcc/13 /usr/local/gfortran/lib
65+
gfortran --version
66+
4067
- name: Install dependencies
4168
run: Rscript -e "install.packages(c('devtools', dependencies=TRUE))" -e "install.packages(c('rcmdcheck', 'devtools', 'Rcpp', 'RcppEigen', 'BH', 'testthat', 'downloader', 'xfun'))";
4269

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

-55
This file was deleted.

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

-52
This file was deleted.

0 commit comments

Comments
 (0)