forked from davidaarmstrong/asmcjr
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (61 loc) · 1.93 KB
/
mac_r.yml
File metadata and controls
70 lines (61 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: R Package CI for macOS
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
permissions:
contents: read
jobs:
build:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
NOT_CRAN: true
steps:
- uses: actions/checkout@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.4.1'
use-public-rspm: true
- name: Install system dependencies
run: |
brew install jags gcc
which gfortran
gfortran --version
- name: Verify JAGS installation
run: |
which jags
ls -la /usr/local/bin/jags* || ls -la /opt/homebrew/bin/jags* || echo "JAGS binary location check"
echo "JAGS installed successfully"
- name: Configure R for gfortran
run: |
mkdir -p ~/.R
echo "FC = $(which gfortran)" >> ~/.R/Makevars
echo "F77 = $(which gfortran)" >> ~/.R/Makevars
GFORTRAN_LIB=$(dirname $(gfortran -print-file-name=libgfortran.dylib))
echo "FLIBS = -L${GFORTRAN_LIB} -lgfortran -lquadmath -lm" >> ~/.R/Makevars
cat ~/.R/Makevars
- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
any::devtools
any::remotes
github::cran/basicspace
needs: check
- name: Verify rjags installation
run: |
Rscript -e "library(rjags); cat('rjags loaded successfully\n')"
- name: Check package
uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran")'
- name: Upload check results
if: failure()
uses: actions/upload-artifact@v4
with:
name: macos-results
path: check