Skip to content

Commit 487bc69

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

File tree

3 files changed

+28
-107
lines changed

3 files changed

+28
-107
lines changed

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

+28
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,30 @@ jobs:
3741

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

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

.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)