Skip to content

Commit

Permalink
GH actions: SF blocks on JAGS for win and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
lindeloev committed Sep 29, 2024
1 parent 400afb3 commit 9445c84
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,24 @@ jobs:

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

# JAGS install from https://github.com/boydorr/SpARKjags/blob/master/.github/workflows/test-build.yaml
# JAGS install. Inspired by https://github.com/boydorr/SpARKjags/blob/master/.github/workflows/test-build.yaml
# but updated with ignoring certificates and redirects.
# JAGS is automatically installed on linux via the rjags package.
- name: Install JAGS (if Windows)
if: runner.os == 'Windows'
run: |
curl.exe -o wjags.exe --url https://deac-fra.dl.sourceforge.net/project/mcmc-jags/JAGS/4.x/Windows/JAGS-4.3.1.exe
curl.exe -o wjags.exe -L0 -k --url https://deac-fra.dl.sourceforge.net/project/mcmc-jags/JAGS/4.x/Windows/JAGS-4.3.1.exe
wjags.exe /S
del wjags.exe
shell: cmd

- name: Install JAGS (if macOS)
if: runner.os == 'macOS'
run: brew install jags
# This worked before R 4.3: brew install jags
run: |
curl -o wjags.pkg -L0 -k --url https://downloads.sourceforge.net/project/mcmc-jags/JAGS/4.x/Mac%20OS%20X/JAGS-4.3.2.pkg
installer -pkg wjags.pkg
rm wjags.pkg
# R
- uses: r-lib/actions/setup-r@v2
Expand Down

0 comments on commit 9445c84

Please sign in to comment.